When npm run lerna bootstrap is executed, multiple npm processes will be started to download the dependencies of each Node project. Lerna uses the binaries (npm) available in the PATH.
Currently, the directory where the binaries are downloaded is not available in the PATH. As a result, Lerna uses the system version of npm instead of the downloaded one.
My workaround has been the following to build.gradle:
Hi,
I have an issue specific to the fact that I use Lerna. Here is an extract of my root
build.gradle
:When
npm run lerna bootstrap
is executed, multiple npm processes will be started to download the dependencies of each Node project. Lerna uses the binaries (npm
) available in the PATH.Currently, the directory where the binaries are downloaded is not available in the PATH. As a result, Lerna uses the system version of npm instead of the downloaded one.
My workaround has been the following to
build.gradle
:I imagine a better fix could be to let the plugin add the download directory to the PATH.