Windows 10,Git Bash (作为管理员),尝试:npm install --save-dev webpack-stream,并得到以下结果:
npm ERR! path D:\Projects\SomeProject\frontend\node_modules\fsevents\node_modules\getpass\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall lstat
npm ERR! Error: EPERM: operation not permitted, lstat 'D:\Projects\SomeProject\frontend\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR! { Error: EPERM: operation not permitted, lstat 'D:\Projects\SomeProject\frontend\node_modules\fsevents\node_modules\getpass\node_modules'
npm ERR! stack: 'Error: EPERM: operation not permitted, lstat \'D:\\Projects\\SomeProject\\frontend\\node_modules\\fsevents\\node_modules\\getpass\\node_modules\'',
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'lstat',
npm ERR! path: 'D:\\Projects\\SomeProject\\frontend\\node_modules\\fsevents\\node_modules\\getpass\\node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2017-12-05T05_24_31_143Z-debug.log我一直在尝试:
npm cache verify和:
npm cache clean -f无结果。
正在尝试关闭杀毒软件-而不是结果。尝试以管理员身份运行cmd,然后:cd project-folder -> npm install --save-dev webpack-stream - no results。
npm -v
5.5.1
node -v
v8.9.1有没有可能解决我的问题?
发布于 2018-03-02 17:21:04
对我有效的是右击项目文件夹,选择“属性”,然后取消选择“只读”,然后选择“应用”。
发布于 2017-12-05 13:51:40
https://stackoverflow.com/questions/47646808
复制相似问题