NPM INSTALL时遇到这个问题:

npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm timing npm Completed in 430583ms

 

解决方法:

1)删除项目目录下的.npmrc文件,再不行就再删除C:\Users\{账户}\下的.npmrc文件

 

2) 不要用NPm了,用cnpm,然后cnpm install -d

 

反正我是这样解决的