Installation failed node-sass

I use win 10 system, node-sass encountered various problems in the installation of front-end development, from the Internet to find a solution.

Open cmd / powershell as administrator 

1. Solve win the absence of the build environment

-g install the Node-gyp npm 
// open powershell success with administrator privileges
npm install --global --production windows-build- tools

2. Install node-sass

npm uninstall node-sass // If the installation fails once, run; otherwise do not
npm install node-sass --save-dev

 

Guess you like

Origin www.cnblogs.com/lmaster/p/11784355.html
Recommended