diff --git a/packages/strapi/bin/strapi-install.js b/packages/strapi/bin/strapi-install.js index c5b8c748de..e958de2399 100755 --- a/packages/strapi/bin/strapi-install.js +++ b/packages/strapi/bin/strapi-install.js @@ -55,7 +55,7 @@ module.exports = function (plugin, cliArguments) { logger.debug('Installing the plugin from npm registry.'); // Install the plugin from the npm registry. - exec(`npm install ${pluginId}@alpha --ignore-scripts --no-save --prefix ${pluginPath}`, (err) => { + exec(`npm install ${pluginID}@alpha --ignore-scripts --no-save --prefix ${pluginPath}`, (err) => { if (err) { logger.error(`An error occurred during plugin installation. \nPlease make sure this plugin is available on npm: https://www.npmjs.com/package/${pluginID}`); process.exit(1); @@ -69,7 +69,7 @@ module.exports = function (plugin, cliArguments) { logger.debug(`Moving the \`node_modules/${pluginID}\` folder to the \`./plugins\` folder.`); // Move the plugin from the `node_modules` folder to the `./plugins` folder. - fs.copySync(`${pluginPath}/node_modules/${pluginId}`, pluginPath); + fs.copySync(`${pluginPath}/node_modules/${pluginID}`, pluginPath); // Success. logger.info('The plugin has been successfully installed.');