i was trying to do an npm install command, But ended up with an error related node sass.
I learning react/redux from the "https://github.com/buckyroberts/React-Redux-Boilerplate" from this. and doing npm install fails.
The error is attached as image.
I am using windows 7, with node 6.9. any idea to solve this error?
Step-1: open command prompt with administrator priviledges.
Step-2: type in the following command:
npm install --global --production windows-build-tools
This will install all the dependencies required.
Step-4: Now run the following command:
npm install node-sass
And you are good to go !
If you still face problems. Please refer to this page:
https://github.com/nodejs/node-gyp#on-windows
This is likely a package that depends on native build tools. Do you have Visual Studio installed? If not, try installing it first and reboot before retrying npm install.
Your issue may be related to https://github.com/sass/node-sass/issues/1379
Related
Npm install is not completed due to some errors.
I;m expecting the npm install successfully completed and ran this local project.
According to your error message, you need python installed.
You can install that from here. https://www.python.org/downloads/
Install python 2.7.1.
If this doesnt help, than post your package.json and your node version and the operating system where you run npm install.
And in that case, post again the error after you installed python.
also run
npm cache verify
rm -rf node_modules
rm package-lock.json // or yarn.lock if you use yarn
npm i
last will clean up your installation.
After installing python, in a new terminal. (important you open a new terminal)
python --version
npm cache clean in your terminal and please check the version of the node and angular in your machine and fix the version which matches your project then again install the npm npm i
PLEASE HELP!
Just a noob here, I am trying to work with some npm packages like sass, and I get this strange error mentioning LINUX OS, which was just tried to install on my computer.
How to fix this? Just to continue with my work, please.
Thanks in advance!
npm install node-sass --save-dev
Parameter --save-dev instead of --save dev ,You can run npm --help to see more details.
According to node-sass package docs there are prerequisites for windows:
https://www.npmjs.com/package/node-sass
You can find the node-gyp install details here:
https://github.com/nodejs/node-gyp#on-windows
If you are trying to install sass while your server is still running and getting this error, you can try restarting your server.
Try this
npm install -g node-sass
Even though I use Administrator install gulp, it still failed.
What's wrong with it?
Change the permission of the file and for more information about permission visit
https://docs.npmjs.com/getting-started/fixing-npm-permissions
If you are in China, there's some network problem to install node-sass.
you can try to use this command to install node: SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ npm install node-sass --save-dev
when i install Sharp Module using "npm install sharp" command. Occur some error please click below image you get some clarification
if you are on windows you can use the following
npm install --global --production windows-build-tools
then install
npm install sharp
it takes sometime for installation but sharp is worth it :)
Not found with Python 3.
You can force the use of python 2 (after installing it)
node-gyp install --python C:\Python27
I'm attempting to install the Ushahidi V3 Client. I've been following the install process up until when I need to build the project from the source repo using npm and gulp - both of which I've had zero experience with. Whenever I run sudo npm install in the project directory, the process runs without complaints. However, when I run npm ls to verify that dependencies have been downloaded, I get a bunch of dependencies listed out as being missing.
How do I get npm to resolve all of these dependencies?
System Details
OS Ubuntu 14.04 (Trusty)
Node JS v0.12.9
NPM v3.5.1
What I've tried
Removing node_modules folder and re-running sudo npm install as referenced in this SO answer for a similar question: npm Gulp dependencies missing, even after running npm install
Uninstalling and reinstalling node and npm
#Strainy, as your research :D
It was a combination of running as sudo and not having the build-essentials.
That's why you should not use sudo npm
Follow these steps:
try npm uninstall. and then try npm install.
Also If it still doesn't work.
Try:
npm install -g npm-install-missing
or
npm-install-missing
For further reading, click here.