-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in build npm install node-sass #1960
Comments
same here. |
Support for Visual Studio 2019 was added in node-gyp v5.0.0 by #1762. It looks like node-sass would need to update the version of node-gyp it depends on: https://github.com/sass/node-sass/blob/fbc9ff5abc72d9bc22a3b0bc9fa902fc46c980f7/package.json#L67 |
I resolved it by running the "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\vsdevcmd.bat" before npm install |
same here. It doesn't seem to work with node 13 |
vs. https://github.com/nodejs/node-gyp/blob/master/CHANGELOG.md |
Hi, I get the same error on a azure pipeline build using a yarn task. |
This is breaking my continuous integration pipeline. |
It calm me down that I'm not the only one ;) |
Closing as this isn't an issue with node-gyp and needs to be taken up with node-sass. node-gyp 5 (or 6) is required for Visual Studio 2019 support. |
I fixed this problem adding to the build phase a command line task forcing to install a specific version of node.
|
Same here, does some one have a working solution? |
Similar problem here, our project was created by Angular 7.0.5, now we use the current Version 8.3.23. No matter what i do, each npm cli command leads to the same result! The mode-sass C/C++ build that fails... I also installed the build tools (c/C++ compiler, python etc.) - does not work. That issue made me INSANE, i'm working since days on it but there seems to be NO solution. (Maybe setup the whole source code by a new Angular 8.3.23 project??!?) |
Not much we can do about Angular or node-sass here, please take it to their repos. I appreciate the need for catharsis, but this is not an ideal place for it. |
OK, thx. "I appreciate the need for catharsis, but this is not an ideal place for it." ...that sounds really interesting!! ;-) |
node-sass has min requirements on the node version itself. |
ok thx |
The only one (quick?) solution was to downgrade to the latest 10.x version. But is there a solution, i can't always install and uninstall different node versions. |
Install NVM on your system. It will list down all your installed node versions in console by using "nvm llist" command and you can switch to your specified node version when needed by this command "nvm use NODE_VERSION" |
ok thx |
hmm getting this though on the right version of node; something to do with yarn; npm is fine |
thank you for your information. |
I was able to install Node version I also installed Python v3 and made sure to add it to the env variables in Windows and also to the |
ok thx |
Node-sass is deprecated so it would be safer to migrate to an alternative. https://sass-lang.com/blog/libsass-is-deprecated |
what are you supposed to install? |
Thanks, i run |
yarn add node-sass worked. what's weird is that i already tried "npm install node-sass" and "npm install -g node-sass" and it didnt work. |
I have the same problem and I am using mac |
I solved the error by uninstalling the Xcode program of mac and installing node version 12. |
OK thx |
in node 14 you can switch to sass .. this past year has seen two major library deprecations for me: node-sass and tslint src: https://sass-lang.com/blog/libsass-is-deprecated |
I'm getting the following error message when trying to run my application's npm install, which uses the node-sass module which in turn uses node-gyp,
The text was updated successfully, but these errors were encountered: