I'm attempting to install this project globally using npm i -g
.
These are the steps:
git clone https://github.com/superflycss/cli
cd cli
npm i
npm i -g
The result is:
ole@mki:~/cli$ npm i -g
npm WARN checkPermissions Missing write access to ~/cli/node_modules/nan
npm ERR! path /home/ole/cli/node_modules/nan
Thoughts?
If I try to cd node_modules/nan
there is no such directory ... so that's one thing. I'm not sure why it's trying to access that?
Deleted all the contents of my local ~/.npm-packages
directory and reinstalled and now it works:
cd ~/.npm-packages
rm -fr *
cd ~/cli
npm i -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.