首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >npm安装不起作用npm错误!代码EPERM npm错误!系统调用mkdir npm错误!路径C:\Users\avtar~saini npm错误!错误号-4048

npm安装不起作用npm错误!代码EPERM npm错误!系统调用mkdir npm错误!路径C:\Users\avtar~saini npm错误!错误号-4048
EN

Stack Overflow用户
提问于 2021-08-09 12:28:46
回答 1查看 172关注 0票数 1
代码语言:javascript
复制
G:\angularProject\battingApp-update>npm i
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path C:\Users\avtar~saini
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Users\avtar~saini'
npm ERR!  [OperationalError: EPERM: operation not permitted, mkdir 'C:\Users\avtar~saini'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, mkdir 'C:\Users\avtar~saini'] {
npm ERR!     errno: -4048,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'mkdir',
npm ERR!     path: 'C:\\Users\\avtar~saini'
npm ERR!   },
npm ERR!   isOperational: true,
npm ERR!   stack: "Error: EPERM: operation not permitted, mkdir 'C:\\Users\\avtar~saini'",
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: 'C:\\Users\\avtar~saini'
npm ERR! }
npm ERR!
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.
EN

回答 1

Stack Overflow用户

发布于 2021-08-10 04:46:46

看起来像是权限问题。

您可以做的第一件事是使用管理权限运行此命令。

如果这不起作用,那么您可以使用管理权限进行尝试:

代码语言:javascript
复制
npm i --unsafe-perms

我想这些应该能解决你的问题

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68712086

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档