Skip to content

Instantly share code, notes, and snippets.

@monsterxcn
Created July 11, 2022 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monsterxcn/29a7aed92617cb30fa6fe2165a5ef651 to your computer and use it in GitHub Desktop.
Save monsterxcn/29a7aed92617cb30fa6fe2165a5ef651 to your computer and use it in GitHub Desktop.
sb node-spy & node-sass

For npm 6 or older

npm install --global node-gyp@latest
npm config set node_gyp $(npm prefix -g)/lib/node_modules/node-gyp/bin/node-gyp.js

For npm 7 or newer

npm explore npm/node_modules/@npmcli/run-script -g -- npm_config_global=false npm install node-gyp@latest
# npm explore npm/node_modules/npm-lifecycle -g -- npm install node-gyp@latest

Supported versions of node-sass

NodeJS Supported node-sass version Node Module
Node 17 7.0+ 102
Node 16 6.0+ 93
Node 15 5.0+, <7.0 88
Node 14 4.14+ 83
Node 13 4.13+, <5.0 79
Node 12 4.12+, <8.0 72
Node 11 4.10+, <5.0 67
Node 10 4.9+, <6.0 64
Node 8 4.5.3+, <5.0 57
Node <8 <5.0 <57

Install node-sass from mirror in China

npm install -g mirror-config-china --registry=https://registry.npmmirror.com
npm install node-sass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment