Questions tagged [npm-install]

npm install is a command in the npm CLI that searches for and installs a specified package from an npm repository.

is a package manager for .

npm install <packagename> is a command in the npm CLI that searches for and installs a specified package from an npm repository. In addition, it will install any packages that the specified package depends on.

Reference:

5374 questions
2
votes
1 answer

npm-windows-upgrade not working

When I run npm install --global --production npm-windows-upgrade it seems to go to work but then give me a few errors: Error: EPERM: operation not permitted, rename 'C:\Users\MyUserName\AppData\Roaming\npm\node_modules.staging\lodash-36ccc657' ->…
Sam
  • 26,817
  • 58
  • 206
  • 383
2
votes
0 answers

npm can't install any packages and doesn't show any errors

OS: Windows 10 Git: 2.10.1 Node: 4.6.0 NPM: 2.15.9 I created empty test folder and I'm trying to install bower and other packages inside via windows console and seeing only loader for a long time, without any errors, but nothing is installed. Just…
A. Gladkiy
  • 3,134
  • 5
  • 38
  • 82
2
votes
0 answers

Nativescript:Oauth Not working

I am trying to create a Facebook Oauth System for my NativeScript Android App.I have installed nativescript-oauth from my app's folder directory like this- tns plugin add nativescript-oauth Inside my node_modules folder a "nativescript-oauth"…
Asm Arman
  • 359
  • 6
  • 24
2
votes
2 answers

Doesn't npm install check for a global version first?

I just setup a test, and tried to npm install express even though express already exists globally on my system. To my surprise, instead of using the global version, it ended up re-installing a version locally!? Isn't it supposed to use the global…
Grateful
  • 9,685
  • 10
  • 45
  • 77
2
votes
1 answer

Issues with NPM : npm ERR! Failed to parse json npm ERR! No data, empty input at 1:1

I am trying to run a project on my local.I have installed npm and nodejs in my computer and try to set the project. The issues arose when I run npm install for the first time. The error message is: npm ERR! Linux 3.13.0-24-generic npm ERR! argv…
Sijan Bhandari
  • 2,941
  • 3
  • 23
  • 36
2
votes
2 answers

npm install phantom.js fails

When I run npm install, i get the following error I reinstalled node and that did not fix the problem. Not really sure where to go from here. It seems like it downloads a bunch of files and extracts them then quits unexpected when after saying…
Dylan
  • 2,161
  • 2
  • 27
  • 51
2
votes
1 answer

Protractor still not available after global npm installation

Now I'm having other issues where Protractor is not found after installing using npm -g . Some background: I was previously having issues with npm installs, but it works now that I have set the correct proxy settings at the client site - i.e. .npmrc…
bob.mazzo
  • 5,183
  • 23
  • 80
  • 149
2
votes
2 answers

I installed Node.js but I can't use npm on windows

I have installed node.js. Node seems to be working properly, however, npm is not being found, as you can see below. C:\Users\jpdrc>node -v v6.5.0 C:\Users\jpdrc>node hello.js node is installed! C:\Users\jpdrc>npm -v module.js:457 throw…
jpdrcarneiro
  • 21
  • 1
  • 3
2
votes
1 answer

Cannot run globally installed node modules in Windows 7

Note: I have tried almost all similar posts related to this issue and found nothing was helpful to me. Hence posting this. Issue: I'm trying to install http-server package in my Windows 7 machine using npm install http-server -g, Installation was…
David R
  • 14,711
  • 7
  • 54
  • 72
2
votes
1 answer

Angular2: Can't find package after npm install

I try to install several packages via npm install. For example: npm install ng2-storage The package is correctly installed in node_modules directory. I try to import the library via: import { StorageSettings } from 'ng2-storage'; But when I start…
rakete
  • 2,953
  • 11
  • 54
  • 108
2
votes
1 answer

Best practice for distributing a nodejs command line application

How do people expect a nodejs commandline application to be organised when you distributed it via npm? Would they expect to have to build it? Install it locally or globally? Should it always output a bin.js? Do you need some kind of alias / script…
Jordan Morris
  • 2,101
  • 2
  • 24
  • 41
2
votes
1 answer

NPM failing on github branch dependency

I have the current dependency in my package.json: "gulp": "github:gulpjs/gulp#4.0", This has been working for some time but all of a sudden I get the following error: λ npm i npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true…
Allan Kimmer Jensen
  • 4,333
  • 2
  • 31
  • 53
2
votes
2 answers

How to get output from node exec when running `npm install`?

I'm running the following: const exec = require('child_process').exec; let installProcess = exec('npm install'); installProcess.stdout.pipe(process.stdout); installProcess.stderr.pipe(process.stderr); But I get no output in my terminal,…
linuxdan
  • 4,476
  • 4
  • 30
  • 41
2
votes
0 answers

webpack doesn't rebuild after i execute npm install

have a demo to describe this questions in here: https://github.com/abnerCrack/react-storybook-demo.git and run npm install questions step: normal: npm run storybook in new shell if i am edit any file in node_modules webpack file watch it's…
abnerCrack
  • 91
  • 1
  • 4
2
votes
1 answer

How to install npm package globally only if not already installed?

I'm writing a build script and it executes commands like: npm install bower -g npm install gulp -g Installing these packages will take around 30-60 seconds on my machine even if they are already installed (e.g. installed from previous run of the…
Tom Pažourek
  • 9,582
  • 8
  • 66
  • 107
1 2 3
99
100