Fixed a bug with installing plugins (#1896)

Where NPM@5 whould rely on package-lock.json and not actually install new entries in package.json.
This commit is contained in:
Thomas Schoffelen 2017-06-02 15:52:38 +02:00 committed by Albin Ekblom
parent 541d07be4c
commit 709fc03933

View file

@ -237,8 +237,8 @@ function install(fn) {
/* eslint-enable camelcase */
// Shell-specific installation commands
const installCommands = {
fish: 'npm prune; and npm install --production',
posix: 'npm prune && npm install --production'
fish: 'npm prune; and npm install --production --no-shrinkwrap',
posix: 'npm prune && npm install --production --no-shrinkwrap'
};
// determine the shell we're running in
const whichShell = (typeof cfgShell === 'string' && cfgShell.match(/fish/)) ? 'fish' : 'posix';