简体   繁体   中英

Install NodejS application Globally

It's really easy to install a Node module from NPM with:

sudo npm install -g ModuleName

But how about doing the same from a Node application code that is on the same machine?
How can it be installed globally? I want to be able to execute it without entering the full path and without publishing it to NPM.

Thanks Chad, that's correct. I can just go inside the application and run sudo npm install -g.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM