npm 安装错误:[NOT_IMPLMENTED] //npm/v1/security/* 尚未实现

问题描述 投票:0回答:1

当我拉取 vscode.and install vs2022.cmd 的代码时,出现“npm install”错误。我尝试重新安装、清理node_module但不起作用。 win10不支持vscode 1.94.0吗?还有nodejs版本高,或者我内存小(8G)。

*** Invalid C/C++ Compiler Toolchain. Please check https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites.
D:\vscode-master\build\npm\preinstall.js:30
                throw new Error();
Node.js v22.9.0

40 http fetch POST 404 https://registry.npmmirror.com/-/npm/v1/security/advisories/bulk 1049ms
41 silly audit bulk request failed [object Object]
42 http fetch POST 404 https://registry.npmmirror.com/-/npm/v1/security/audits/quick 36ms
43 verbose audit error HttpErrorGeneral: 404 Not Found - POST https://registry.npmmirror.com/-/npm/v1/security/audits/quick - [NOT_IMPLEMENTED] /-/npm/v1/security/* not implemented yet
43 verbose audit error     at D:\npmInstall\node_modules\npm\node_modules\npm-registry-fetch\lib\check-response.js:95:15
43 verbose audit error     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
43 verbose audit error     at async [getReport] (D:\npmInstall\node_modules\npm\node_modules\@npmcli\arborist\lib\audit-report.js:336:21)
43 verbose audit error     at async AuditReport.run (D:\npmInstall\node_modules\npm\node_modules\@npmcli\arborist\lib\audit-report.js:106:19)
43 verbose audit error     at async Arborist.reify (D:\npmInstall\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:268:24)
43 verbose audit error     at async Install.exec (D:\npmInstall\node_modules\npm\lib\commands\install.js:150:5)
43 verbose audit error     at async Npm.exec (D:\npmInstall\node_modules\npm\lib\npm.js:207:9)
43 verbose audit error     at async module.exports (D:\npmInstall\node_modules\npm\lib\cli\entry.js:74:5) {
43 verbose audit error   headers: [Object: null prototype] {
43 verbose audit error     server: [ 'Tengine' ],
43 verbose audit error     date: [ 'Mon, 23 Sep 2024 06:20:21 GMT' ],
43 verbose audit error     'content-type': [ 'application/json' ],
43 verbose audit error     'transfer-encoding': [ 'chunked' ],
43 verbose audit error     connection: [ 'keep-alive' ],
43 verbose audit error     'strict-transport-security': [ 'max-age=5184000' ],
43 verbose audit error     via: [ 'kunlun7.cn7036[,404666]' ],
43 verbose audit error     'timing-allow-origin': [ '*' ],
43 verbose audit error     eagleid: [ 'da620c9b17270724218973624e' ],
43 verbose audit error     'x-fetch-attempts': [ '1' ]
43 verbose audit error   },
43 verbose audit error   statusCode: 404,
43 verbose audit error   code: 'E404',
43 verbose audit error   method: 'POST',
43 verbose audit error   uri: 'https://registry.npmmirror.com/-/npm/v1/security/audits/quick',
43 verbose audit error   body: {
43 verbose audit error     error: '[NOT_IMPLEMENTED] /-/npm/v1/security/* not implemented yet'
43 verbose audit error   },
43 verbose audit error   pkgid: undefined
43 verbose audit error }
44 silly audit error [object Object]
45 silly audit report null
46 verbose stack Error: command failed
53 verbose os Windows_NT 10.0.17763
54 verbose node v22.9.0
55 verbose npm  v10.8.3
node.js visual-studio-code
1个回答
0
投票

我安装了vs2022工具,但由于某种未知原因,系统的环境变量丢失了。只需配置vs2022_install就可以了

© www.soinside.com 2019 - 2024. All rights reserved.