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
2 answers

Understanding npm install -g option

Just getting started with node. I'm a little confused about the npm install -g option. Could someone tell me if the following is correct: npm install -g installs global packages in a general location npm install installs packages in the specific…
DCR
  • 14,737
  • 12
  • 52
  • 115
2
votes
3 answers

angular cli installation fails at step fetchMetadata: sill resolveWithNewModule chokidar@1.7.0 checking installable status

I am new to angular cli. Trying to install angular cli on windows machine in my company(behind proxy). Have installed node and npm. Using npm I also installed typescript packages. However the angular cli installation fails at below step: [ …
Anrgkdm
  • 41
  • 1
  • 5
2
votes
2 answers

How to tell gradle to install npm within the project on build?

My angular 4 UI for a java web application depends only on the below few bundles. I ran the below commands from webapps root. App works fine. I want to know the best practices as I'm new to angular. npm install rxjs npm install @angular/core@4.4.6…
user6774261
2
votes
1 answer

Issue while executing npm commands

We are facing the below issue while running npm commands multiple times on a machine at the same time. This issue occurs randomly. Couldn't find any root cause. Details are attached to below error log Error log: 0 info it worked if it ends with…
christo
  • 129
  • 1
  • 2
  • 13
2
votes
3 answers

Error: npm install -g @angular/cli

When I am trying to run this command, it through error and NPM does not install completely. Before this version of Node.js I also installed node-v8.9.1-x64.msi, but their same issue I was facing that's why I uninstalled and installed…
Vinit ...
  • 1,409
  • 10
  • 37
  • 66
2
votes
3 answers

npm install ethereum/web3.js - gives me an error

npm install ethereum/web3.js --save I get: npm ERR! code ENOGIT npm ERR! No git binary found in $PATH npm ERR! npm ERR! Failed using git. npm ERR! Please check if you have git installed and in your PATH.
mfeldman
  • 21
  • 4
2
votes
1 answer

npm install not installing dependencies - just lock file

I've never had any problems with getting npm install to work before, so am unsure what the issue is now? I have tried running: npm install npm install --save-dev The first time I let my IDE run it (PHPStorm) and it created the node_modules folder…
Brett
  • 19,449
  • 54
  • 157
  • 290
2
votes
1 answer

Concurrent builds cause npm install to fail on TeamCity

We are using TeamCity to build an Angular web application, which involves an npm install build step. This intermittently fails with the error shown below (slightly edited to remove commercially sensitive details). We suspect that the failures are…
Alistair Green
  • 462
  • 3
  • 10
2
votes
2 answers

Difference between npm cache and global folder

As per the docs, npm has both a global folder and a cache folder. Global: Global installs on Unix systems go to {prefix}/lib/node_modules. Global installs on Windows go to {prefix}/node_modules Cache: Cache files are stored in ~/.npm on Posix, or…
Phil
  • 598
  • 1
  • 9
  • 21
2
votes
0 answers

npm failing to install packages with local dependency

I am having problems installing an npm package that has a file dependency off of github. When installing directly from a local package there are no problems. The package that I am trying to install has a dependency on a package defined within on of…
Elad
  • 530
  • 1
  • 7
  • 22
2
votes
3 answers

npm doesn't work after 'npm install'

I installed node.js + npm from https://nodejs.org/en/ and created a folder for project and cd into it (OS: Windows 10). When i try C:\nodejs\demo>npm install express@3.5.0 npm starts to delete the all standart packages and after the process of…
elfinorr
  • 189
  • 3
  • 12
2
votes
1 answer

npm WARN tar EINVAL after WSL Fall Creators Update

Issue: I just updated my WSL installation after installing the Fall Creators Update and now when I run npm i I get the following warnings from npm I get probably 2-20 of these warnings from random packages each time I install, it's never consistent.…
Auzy
  • 2,135
  • 2
  • 25
  • 35
2
votes
7 answers

Unable to npm install Angular-cli after proxy configuration

I am trying to download Angular in Windows 10 using npm install. As I am on corporate proxy, I configured the proxy to username:password@server:port However, I am facing this issue when running npm ERR! code E407 npm ERR! 407 Proxy Authorization…
icedmilocode
  • 95
  • 1
  • 2
  • 15
2
votes
3 answers

How to install an npm package locally

I have downloaded the following demo and ng2-archwizard I would like to make changes to make local change to the source for ng2-archwizard and install the package locally for this demo project. The first thing that I tried was npm link by following…
andthereitgoes
  • 819
  • 2
  • 10
  • 24
2
votes
1 answer

Customize build directory in 'npm start' command

I have Angular app built with npm and web-pack served on Tomcat web server. Command npm run build builds all JS files into /build directory of the project, but npm start uses /out directory. Is there any way to force npm start using /build…
Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148