error /node_modules/node-sass: Command failed

117 阅读1分钟

解决方案

版本需要对应上

NodeJSSupported node-sass versionNode Module
Node 166.0+93
Node 155.0+88
Node 144.14+83
Node 134.13+, <5.079
Node 124.12+72
Node 114.10+, <5.067
Node 104.9+, <6.064
Node 84.5.3+, <5.057
Node <8<5.0<57

check your Node version with: node --version

install the Nodejs version according with your node-sass, if your are using NVM, run: nvm use DESIRED_VERSION

clean old node_modules deleting the folder or type this on terminal: rm -rf node_modules

run: npm install