error when trying ''npm install node-sass --save dev" - node.js

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

Related

Installing of Angular is not successful. No errors shown

If you look a the picture I made sure I had npm and node and then tried to install Angular CLI and it does not give me an error or anything. I am not sure what I have done. This laptop did crash a while back and I reloaded it not sure if that would contribute to this issue.
I even updated npm and node to the latest to see if that would fix the issue. I am on Windows 10 Home edition. The angular CLI seems to be working on my home desktop. How can I get this working again even if I uninstall something to get it working correctly.
I thought it was NPM but somehow I have the loglevel set to silent.
Try installing it globally,
npm install -g #angular/cli
Give an uninstall a try.
npm uninstall -g #angular/cli
npm cache clean
npm install -g #angular/cli#latest
In the screenshot you posted, there is this line
npm ERR! npm -v 1.3.21
Maybe you should reinstall node also.
I finally uninstalled NODE completely and found the extra folders left over and reinstalled and that has fixed my issue. Nothing to do with Angular. Thanks for helping.
Try this:
npm install angular-cli

npm install running failed

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

Cannot find module 'har-schema'

I am trying to make ionic2 app. But npm is not supporting. It always gives me this error.
Try to install previous version of npm:
npm install npm#5.2 -g
Unfortunatelly, current version(5.3) has a lot of bugs.
I found solution of it. Solution is uninstall node and npm completely from your PC and then re-install it.
to uninstall node and npm completely check this link.
How to completely remove node.js from Windows
This worked for me:
npm install -g --only=production --save har-schema

Error on installing angular/cli - not found: python2

I am trying to install with this command "npm install -g #angular/cli".
But I always get the error "Error: not found: python2"
Is there something I am missing here?
Just in case you do not want to downgrade, which is not needed anyways.
Then this is what you should do,
Fix node-sass version issue first:
The issue is with the version of node-sass (prior to the python2 error). So install it as
npm install node-sass.
Now run npm install
If it asks to fix using npm audit fix. Go ahead!
Downgrade to npm version 4, try this:
npm install -g npm#4.6.1
I had the same issue. I manage to install the python 2 version. It got solved this is the version i installed
https://www.python.org/ftp/python/2.7.15/python-2.7.15.amd64.msi

Node sass Error while doing npm install

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

Resources