Node - installation problem in Windows 10

I installed node js latest version (8.8.1) and latest npm (5.5.1) and when I try to install node-sass, I get the following:

npm install -g node-sass

C: \ Users \ Giannis \ AppData \ Roaming \ npm \ node-sass → C: \ Users \ Giannis \ AppData \ Roaming \ npm \ node_modules \ node-sass \ bin \ node-sass

node -sass@4.5.3 install C: \ Users \ Giannis \ AppData \ Roaming \ npm \ node_modules \ node -sass node scripts / install.js

'node' is not recognized as an internal or external command, operating program, or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node -sass@4.5.3 set: node scripts/install.js npm the ERR! Release Status 1 npm ERR! npm ERR! Failed to install node-sass@4.5.3 script. npm ERR! This is probably not a problem with npm. There is probably an additional way out of the journal.

npm ERR! The full log of this run can be found in: npm ERR! C: \ Users \ Giannis \ AppData \ Roaming \ NPM-cache_logs \ 2017-10-26T11_57_10_751Z-debug.log

I set the system variable C: \ Program Files \ nodejs \

thank

+10
source share
1 answer

node-sass requires a node- https: //github.com/sass/node-sass#install

node-gyp Windows https://github.com/nodejs/node-gyp#on-windows

, Microsoft Windows-build-tools, npm install --global --production windows-build-tools PowerShell CMD.exe ( ).

+22

Source: https://habr.com/ru/post/1688212/


All Articles