-
-
Notifications
You must be signed in to change notification settings - Fork 667
Bug: Installing fails with "lerna: command not found" #629
Copy link
Copy link
Closed
Description
Describe the bug
Running npm install in a project depending on webpack-cli fails with lerna: command not found.
To Reproduce
mkdir test && cd test
npm init
npm add webpack/webpack-cli
What is the current behavior?
[gwylim@gwylim test]$ npm install
> webpack-cli@3.1.2 postinstall /home/gwylim/test/node_modules/webpack-cli
> lerna bootstrap
sh: lerna: command not found
npm WARN webpack-cli@3.1.2 requires a peer of webpack@^4.x.x but none is installed. You must install peer dependencies yourself.
npm WARN test@1.0.0 No description
npm WARN test@1.0.0 No repository field.
npm WARN test@1.0.0 No license field.
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! webpack-cli@3.1.2 postinstall: `lerna bootstrap`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the webpack-cli@3.1.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/gwylim/.npm/_logs/2018-10-05T19_24_36_020Z-debug.log
Additional context
This seems to be related to 4150849, since npm install is no longer run before lerna bootstrap. It works as expected if that commit is reverted.
My machine is running Arch Linux with npm version 5.6.0. This only seems to occur on linux from what we've observed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels