Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

Commit 9667321

Browse files
author
Ilya Radchenko
committed
Ignore scripts on install -- Fixes #12
This avoids preinstall prepublish scripts that might use devDependencies, but since we use `--production` those aren't installed and the result is an error. This solves that.
1 parent 81ac9d5 commit 9667321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin_manager/npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var spawn = require('spawn-cmd').spawn;
33
module.exports = function(cwd) {
44
return {
55
install: function(cb) {
6-
var proc = spawn('npm', [ 'install', '--production' ], {
6+
var proc = spawn('npm', [ 'install', '--production', '--ignore-scripts' ], {
77
stdio: 'inherit',
88
cwd: cwd
99
})

0 commit comments

Comments
 (0)