Not able to install "Sharp Module" in nodejs using npm - node.js

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

Related

npm install failing . how to install without error

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

Installing lodash.filter

What is the difference between npm install and npm install --save?
I try to install lodash.filter using npm install --save lodash.filter. I thought it install the packet + describes it in package.json.
But the system says, she do not understand, what lodash.filter is.
Should I install lodash.filter again using npm install lodash.filter? Or what should I do? Uninstalling lodash.filter and trying to install it again?
To check installed modules use npm ls to show all your modules and npm ls lodash.filter to see, if it is installed. I think the system showed the mistake, because imported lodash.filter wasn't used in program (I followed the other steps in the tutorial and it rendered well).

Unable to npm install or start with electron-quick-start

I am using the version of node that is stated on electron's site, which is 7.4.0 and I'm using NPM version 4.0.5 (Windows).
The problem I'm having is with the npm install command in the cloned electron-quick-start folder. I have tried using the command with --save-devand -g but they don't do anything to help.
Upon using just npm install;
fetchMetadeta: still install loadAllDepsIntoIdealTree
With the above stated arguments (output);
--electron-quick-start#1.0.0
Then npm start after the above output;
Pastebin
Any help would be greatly appreciated, thanks.
You must get npm install to work before you can start the app
You could try the following
npm cache clean
npm install This will cache clean of npm
npm install -g yarn
yarn install This will install yarn (This will probably work but it might not be what you're looking for). Yarn is an alternative to npm
npm -g install npm
npm install This will reinstall npm
And I would look into nvm and nvm-windows
And if none of those work I would look at
this issuse on github
And if that doesn't work I would just look at google

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

Cannot install npm modules (packages) in Windows 7?

I have node js (version 5.6.0) and npm(version 3.6.0) installed on my PC.But the problem is I am not able to install npm packages on my PC.Whenever I run npm install "somepackage" from the Cmd line, it shows "LoadDep:unorm-> get" something like this and installation stops.How can I install Npm packages?
Thanks in advance :)

Resources