目录
报错案例1
npm ERR! Cannot read properties of null (reading 'pickAlgorithm')
解决方案:清理缓存后再次安装
npm cache clear --force
报错案例2
npm ERR! gyp info it worked if it ends with ok
...
npm ERR! gyp ERR! cwd C:...
ode_modules
ode-sass
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
解决方案:安装最新版本的node-sass
npm install node-sass@latest
报错案例3
Error: Node Sass version 7.0.1 is incompatib