简体   繁体   中英

npm config set cache <PATH> --global is not working correctly

Every time, when I run npm, in project folder creating a new folder - UsersProfessionalAppDataRoamingnpm-cache . I think, this is a folder for npm cache. I'm runned npm config set cache C:\Users\Professional\AppData\Roaming\npm-cache --global before that.

Windows 10.

You need to wrap a path into " like this:

npm config set cache "C:\Users\Professional\AppData\Roaming\npm-cache" --global

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