我把nuxt3卸载后重新安装nuxt@2.0.0后npm run dev报错如下

来源:9-1 城市服务

Lkgame

2019-04-28

npm WARN rollback Rolling back @types/q@1.5.2 failed (this is probably harmless): E PERM: operation not permitted, lstat 'D:\mt-app\node_modules@types\q’
npm ERR! path D:\mt-app\node_modules@types
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall mkdir
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\mt-app\node_modules@type s’
npm ERR! { Error: EPERM: operation not permitted, mkdir 'D:\mt-app\node_modules@t ypes’
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, mkdir 'D:\mt-app\node_modules\ @types’
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘mkdir’,
npm ERR! path: ‘D:\mt-app\node_modules\@types’ },
npm ERR! stack: ‘Error: EPERM: operation not permitted, mkdir ‘D:\mt-app\node_ modules\@types’’,
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘mkdir’,
npm ERR! path: ‘D:\mt-app\node_modules\@types’,
npm ERR! parent: ‘mt-app’ }
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 antivi rus),
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 (though this is not recommended).

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\25108\AppData\Roaming\npm-cache_logs\2019-04-28T13_34_02_498 Z-debug.log

写回答

1回答

快乐动起来呀

2019-04-28

把node_modules删除再重装

0
1
Lkgame
我已经解决了,谢谢老师,是我当时vscode没关,所以重装后没有更新
2019-04-28
共1条回复

Vue全家桶+SSR+Koa2全栈开发美团网

整合大前端8项技术,全面晋级全栈工程师,毕设/面试作品

2445 学习 · 1638 问题

查看课程