报错内容:
npm ERR! gyp ERR! cwd C:\Users\zccbbg\code\my\examvue\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.13.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
解决办法:
 降npm版本,之前用的是:16.13.1,现在改成:12.14.0。就好了
ps:
 建议装个nvm,相当好用
nvm list

nvm use 12.14.0
再跑npm install 就不报错了