npm install --global --vs2019 --production windows-build-tools
报一下错误信息
Downloading python-2.7.15.amd64.msi
Downloading Python failed. Error: Error: getaddrinfo ENOTFOUND cdn.npmmirror.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) {
errno: -3008,
code: ‘ENOTFOUND’,
syscall: ‘getaddrinfo’,
hostname: ‘cdn.npmmirror.com’
}
windows–build–tools will now exit.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! windows–build–tools@5.2.2 postinstall: node ./dist/index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the windows–build–tools@5.2.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! D:websoftwarenodeJSnodejsnode_cache_logs2023-01-06T09_07_41_306Z-debug.log
原文地址:https://blog.csdn.net/qq_24313643/article/details/128582175
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_30738.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!