I accidentally changed the npm prefix to a place that doesn't exist. Is there a configuration file I can access that would allow me to change this back?
But it seems like there should be a config file I can change somewhere, right?
" prefix
can be defined per-install and other commands using --prefix
, but as a global setting it is in ~/.npmrc
( C:\\Users\\<your user name>\\.npmrc
). You can remove / edit it directly in that file.
You can also use npm config set prefix $value
, or npm config delete prefix
if you prefer.
一个简单的ln -s \/usr\/local\/bin\/n \/usr\/bin\/n<\/code>已经解决了这个问题。
"
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.