报错如下

 Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     ‘D:\V3Work\v3project\node_modules\@vue‘,
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir ‘D:V3Workv3projectnode_modules@vuereactivitydist‘] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: ‘EPERM’,
npm WARN cleanup       syscall: ‘rmdir‘,
npm WARN cleanup       path: ‘D:\V3Work\v3project\node_modules\@vue\reactivity\dist
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     ‘D:\V3Work\v3project\node_modules‘,
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir ‘D:V3Workv3projectnode_modules@babelparserlibparser‘] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: ‘EPERM’,
npm WARN cleanup       syscall: ‘rmdir‘,
npm WARN cleanup       path: ‘D:\V3Work\v3project\node_modules\@babel\parser\lib\parser
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code E404
npm ERR! 404 Not Found – GET https://repo.huaweicloud.com/repository/npm/magic-string/-/magic-string-0.30.2.tgz
npm ERR! 404
npm ERR! 404  ‘magic-string@https://repo.huaweicloud.com/repository/npm/magicstring/-/magicstring-0.30.2.tgz‘ is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: C:UsersHTHTAppDataLocalnpmcache_logs2023-08-03T08_26_51_647Z-debug-0.log

下图

 删除C:Usersadmin下的.npmrc文件

原文地址:https://blog.csdn.net/qq_42129143/article/details/132089570

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_25484.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注