I want to make a npm package and can be installed as global,but when i publish a package,it can't be used in global,what should i do ?
I clone grunt-cli from github,I just want to test whether it can be installed in global,but i failed. What should i do?
To install a package as a global package you need to run npm install -g packagename
.
On Mac and Linux you need to run sudo npm install -g packagename
.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments