npm vue operation not permitted, lstat 'E:\banzhuan\test\node_modules\fsevents\node_modules'
今天用vue cli3 创建的 vue create test项目,总是报这个错误
1、第一反应是权限不够,更换成管理员shell 还是不行。
2、查看npm 版本发现自己是5.4 ,将npm降至5.3 npm install -g [email protected]
运行发先正常了。
3、 假如是npm 安装的时候报这个错误。
可以尝试使用cnpm 或者 npm 后面带参数
npm install --no-optional