mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
Fix pluginID
This commit is contained in:
parent
b4e6421aff
commit
034b6df310
@ -55,7 +55,7 @@ module.exports = function (plugin, cliArguments) {
|
|||||||
logger.debug('Installing the plugin from npm registry.');
|
logger.debug('Installing the plugin from npm registry.');
|
||||||
|
|
||||||
// Install the plugin from the 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) {
|
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}`);
|
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);
|
process.exit(1);
|
||||||
@ -69,7 +69,7 @@ module.exports = function (plugin, cliArguments) {
|
|||||||
logger.debug(`Moving the \`node_modules/${pluginID}\` folder to the \`./plugins\` folder.`);
|
logger.debug(`Moving the \`node_modules/${pluginID}\` folder to the \`./plugins\` folder.`);
|
||||||
|
|
||||||
// Move the plugin from the `node_modules` 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.
|
// Success.
|
||||||
logger.info('The plugin has been successfully installed.');
|
logger.info('The plugin has been successfully installed.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user