遇到问题
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\boo\AppData\Roaming\npm-cache\concat-map\0.0.1\package\package.json.12237d5421eab475588a272c2552fc32' -> 'C:\Users\boo\AppData\Roaming\npm-cache\concat-map\0.0.1\package\package.json'npm ERR! at Error (native)npm ERR! { [Error: EPERM: operation not permitted, rename 'C:\Users\boo\AppData\Roaming\npm-cache\concat-map\0.0.1\package\package.json.12237d5421eab475588a272c2552fc32' -> 'C:\Users\boo\AppData\Roaming\npm-cache\concat-map\0.0.1\package\package.json']npm ERR! errno: -4048,npm ERR! code: 'EPERM',npm ERR! syscall: 'rename',npm ERR! path: 'C:\\Users\\boo\\AppData\\Roaming\\npm-cache\\concat-map\\0.0.1\\package\\package.json.12237d5421eab475588a272c2552fc32',npm ERR! dest: 'C:\\Users\\boo\\AppData\\Roaming\\npm-cache\\concat-map\\0.0.1\\package\\package.json',npm ERR! parent: 'brace-expansion' }npm ERR!npm ERR! Please try running this command again as root/Administrator.npm ERR! Please include the following file with any support request:
之前一直没有遇到权限问题啊,今天突然就出现了.
google之后发现解决办法
- 执行命令
npm cache clean
2.如果以上代码没有解决问题成功,那么看一下这个目录 %APPDATA%\npm-cache,手动清空这个目录下的所有信息,之后如果还是有问题的话,就继续google把,或者留言给我也可以