Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gulp-sass npm ERR! Failed at the [email protected] install script

Im trying to install gulp-sass from terminal window in visual studio code.

other dependencies like autoprefixer, concat etc install without a problem, but gulp-sass keeps giving me this error.

> [email protected] install /usr/local/lib/node_modules/node-sass
> node scripts/install.js

sh: node: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node scripts/install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Im running VSC on a mac.

Any help please? I am completely new at all this btw, no programming background, just front end dev.

Thanks a lot

like image 668
Silvester Vella Avatar asked May 06 '18 09:05

Silvester Vella


People also ask

What is the node Sass version for node 14?

0 #2895.

What can I use instead of node sass?

Sass, Webpack, PostCSS, Compass, and Animate. css are the most popular alternatives and competitors to node-sass.

What is node sass?

Node sass is a library that allows binding for Node. js to LibSass, the C version of Sass's stylesheet preprocessor. It compiles . scss files to CSS with speed and automatically through connected middleware. SASS (Syntactically Awesome Style Sheets) is a comprehensive version of CSS.


1 Answers

I have the same problem. And I found this solution:

sudo npm install -g [email protected] --unsafe-perm = true --allow-root

I just changed part of the code:

sudo npm install gulp-sass --unsafe-perm = true --allow-root

It worked for me.

like image 195
Mary Brykina Avatar answered Sep 21 '22 16:09

Mary Brykina