Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to run lerna's command

Tags:

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 
like image 234
Vaibhav Agrawal Avatar asked May 25 '18 05:05

Vaibhav Agrawal


People also ask

What is NPX vs NPM?

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.

How do I install lerna globally using yarn?

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 .

What is lerna JSON?

Lerna is a fast modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository. Get Started.


1 Answers

Try running the command

npm install --g lerna 
like image 73
Alper Ebicoglu Avatar answered Sep 19 '22 07:09

Alper Ebicoglu