npm install 报错
FetchError: Invalid response body while trying to fetch https://registry.npm.taobao.org/express: EPERM: operation not permitted, mkdir 'D:\Program Files\nodejs\node_cache\_cacache'
解决办法:删除“C:\Users\用户名”目录下的.npmrc文件。
当遇到npm install时出现FetchError,如'EPERM: operation not permitted, mkdir',这通常是因为缓存问题。解决方法是删除用户目录下的.npmrc文件,这将清除npm的配置并可能解决权限错误。
npm install 报错
FetchError: Invalid response body while trying to fetch https://registry.npm.taobao.org/express: EPERM: operation not permitted, mkdir 'D:\Program Files\nodejs\node_cache\_cacache'
解决办法:删除“C:\Users\用户名”目录下的.npmrc文件。
2万+
4万+
2640
1691

被折叠的 条评论
为什么被折叠?