I am trying to install lerna using npm , packages are successfully added but when I run any command of lerna it comes out as.
bash: lerna: command not found
Node Version : v8.10.0
Npm Version : 3.10.9.
Here's what I am trying:
$ npm install --global lerna C:\Users\<user-name>\AppData\Roaming\npm\lerna -> C:\Users\<user-name>\AppData\Roaming\npm\node_modules\lerna\bin\lerna.js C:\Users\<user-name>\AppData\Roaming\npm `[email protected] VaibhavPC@Vaibhav MINGW64 ~/Projects/lerna init bash: lerna: command not found
NPM is a package manager used to install, delete, and update Javascript packages on your machine. NPX is a package executer, and it is used to execute javascript packages directly, without installing them.
You can install it globally with npm install --global lerna , yarn global add lerna or your favourite package manager, to run commands with lerna <command> . Also, if you don't want to install it, you can use package runners such as npx .
Lerna is a fast modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository. Get Started.
Try running the command
npm install --g lerna
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With