npm i download failed, error: node-sass installation failed Failed at the [email protected] postinstall script ....

控制台运行npm install时报错,报错信息如下: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: `node scripts/build.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.

 Solution: 1. Uninstall node-sass run: npm uninstall node-sass 

 2, re-install the specified node-sass version (the version of the installation failed) run: npm install [email protected] 

 3, if the installation is unsuccessful, or slow connections are not mounted using a repeat steps 1 and 2 at the Taobao mirror, and then successfully used npm install Taobao Mirror operation: npm config set registry https: //registry.npm. taobao.org






Guess you like

Origin blog.csdn.net/weixin_33676492/article/details/91398565