students-learn-task npm i 报错
相关截图:
相关代码:
➜ students-learn-task git:(main) npm i Unhandled rejection Error: EACCES: permission denied, open '/Users/yanghuimin/.npm/_cacache/index-v5/5c/b6/5fab47039f5eba2c95a8fea2e7336a01dffe661f77551f8c6e2fa8204b28' Unhandled rejection Error: EACCES: permission denied, open '/Users/yanghuimin/.npm/_cacache/index-v5/e1/16/4bd6d076f3462614d1e095dfb841e985a898ac52ec6e63856ab5172279fe' npm WARN deprecated request@2.74.0: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated request@2.81.0: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@2.0.6: this library is no longer supported npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). Unhandled rejection Error: EACCES: permission denied, open '/Users/yanghuimin/.npm/_cacache/index-v5/b8/34/770613163ff295605729366efa492bd6b45110ade1aee2a9353c8505013c' npm WARN deprecated uuid@3.1.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0 npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https://npm.community> npm ERR! A complete log of this run can be found in: npm ERR! /Users/yanghuimin/.npm/_logs/2021-12-04T12_54_05_189Z-debug.log
9
收起
正在回答
1回答
同学你好 这个应该是你本地 npm 安装时候的问题,造成了权限问题,请看这篇文章,可以很好的解答你的问题
https://segmentfault.com/a/1190000018660227
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星