error Error: EPERM: operation not permitted, mkdir ‘D:\node\anzhuang\node_modules\.staging‘

一、报错详情:

1.详细报错信息

error code EPERM
55 error syscall mkdir
56 error path D:\node\anzhuang\node_modules\.staging
57 error errno -4048
58 error Error: EPERM: operation not permitted, mkdir 'D:\node\anzhuang\node_modules\.staging'
58 error  [OperationalError: EPERM: operation not permitted, mkdir 'D:\node\anzhuang\node_modules\.staging'] {
58 error   cause: [Error: EPERM: operation not permitted, mkdir 'D:\node\anzhuang\node_modules\.staging'] {
58 error     errno: -4048,
58 error     code: 'EPERM',
58 error     syscall: 'mkdir',
58 error     path: 'D:\\node\\anzhuang\\node_modules\\.staging'
58 error   },
58 error   errno: -4048,
58 error   code: 'EPERM',
58 error   syscall: 'mkdir',
58 error   path: 'D:\\node\\anzhuang\\node_modules\\.staging'
58 error }
59 error The operation was rejected by your operating system.
59 error It's possible that the file was already in use (by a text editor or antivirus),
59 error or that you lack permissions to access it.
59 error
59 error If you believe this might be a permissions issue, please double-check the
59 error permissions of the file and its containing directories, or try running
59 error the command again as root/Administrator.
60 verbose exit [ -4048, true ]

二、解决办法:

方法1:

打开cmd时候,使用管理员身份

三、解决完成

查看TS版本有以下几种方法:

1.通过命令行:

  • 检查电脑是否安装了TS:tsc-v
  • 查看已安装的TS版本:tsc-v1

2.通过npm:

  • 查看本机TS版本:npm view typescript version
  • 检查本地是否安装了TS:npm ls typescript
  • 全局安装TS:npm i -g typescript12
  • 卸载TS:npm uninstall typescript2

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值