架构师_程序员_码农网

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 5097|回复: 0

"npm ERR! Error: EPERM: operation not permitted"问题解决

[复制链接]
发表于 2019-5-30 17:02:31 | 显示全部楼层 |阅读模式
npm ERR! path c:\project\git\dz-ad-system\node_modules\fsevents\node_modules
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall lstat
npm ERR! Error: EPERM: operation not permitted, lstat 'c:\project\git\dz-ad-system\node_modules\fsevents\node_modules'
npm ERR!  { Error: EPERM: operation not permitted, lstat 'c:\project\git\dz-ad-system\node_modules\fsevents\node_module
'
npm ERR!   stack: 'Error: EPERM: operation not permitted, lstat \'c:\\project\\git\\dz-ad-system\\node_modules\\fsevent
\\node_modules\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'lstat',
npm ERR!   path: 'c:\\project\\git\\dz-ad-system\\node_modules\\fsevents\\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\itsvse_pc\AppData\Roaming\npm-cache\_logs\2019-05-30T08_33_22_842Z-debug.log
QQ截图20190530165104.jpg

尝试解决办法一:


通过管理员身份运行cmd命令,其实一开始就是管理员身份运行的命令,未解决。

尝试解决办法二:

获取npm缓存本地路径

得到 C:\Users\itsvse_pc\AppData\Roaming\npm-cache 文件夹

删除fsevents文件夹,未解决。

尝试解决办法三:

升级angular-cli脚手架


新的错误如下:

You are running version v8.9.2 of Node.js, which is not supported by Angular CLI 8.0+.
The official Node.js version that is supported is 10.9 or greater.

Please visit https://nodejs.org/en/ to find instructions on how to update Node.js.
未解决

尝试解决办法四:

重新下载安装最新版本的node.js,地址:https://nodejs.org/en/

升级成了“node-v10.16.0-x64”版本,最后,问题解决。。。。。




上一篇:为什么我用这段代码post不能登录discuz呢
下一篇:消息队列收发消息Demo
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

免责声明:
码农网所发布的一切软件、编程资料或者文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:help@itsvse.com

QQ|手机版|小黑屋|架构师 ( 鲁ICP备14021824号-2 )|网站地图

GMT+8, 2024-4-24 00:43

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表