我尝试运行此安装:
npm install [email protected] nw-builder -D
但是它给了我这个问题。如果我尝试安装另一个软件包,则不会收到此消息。
我也清除了npm缓存并删除了node_modules
而且我还设置了公司代理
tunneling socket could not be established, statusCode=407 npm WARN [email protected] No description npm WARN [email protected] No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: `node scripts/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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! C:\Users\H90431283\AppData\Roaming\npm-cache\_logs\2020-02-18T14_48_15_391Z-debug.log
根据this answer,此问题取决于代理配置。您需要正确设置NPM代理配置:
npm config set proxy http://yourproxyaddress:port
npm config set https-proxy http://yourproxyaddress:port
npm config set strict-ssl false
将在Github上进行全功能讨论:https://github.com/sass/node-sass/issues/2202