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

How to install NPM package under alias or different name

How can I npm install a package into a different directory?
Vincent
  • 3,191
  • 3
  • 29
  • 35
75
votes
11 answers

How to install Angular CLI locally (without the -g flag)

I've just started working with Angular and with Angular-CLI and I've seen that, according to the documentation, I need to install $ npm install -g @angular/cli with the -g (global) flag. However I would like to have Angular-CLI installed locally…
Gil Epshtain
  • 8,670
  • 7
  • 63
  • 89
73
votes
6 answers

Installing packages from github npm registry - auth error 401

I have just published a private package on GitHub, trying to figure out how it should be working. now I'm trying to install it in another project. I authenticated with npm login --registry=https://npm.pkg.github.com with an access token that has…
Michał Sadowski
  • 1,946
  • 1
  • 11
  • 24
73
votes
6 answers

npm - using stale package data

Whenever I do an npm install, I get a ton of messages about it using stale package data. What does that mean and is it something I need to worry about? Here's a small example of the warning messages I get with an npm install. In this particular…
BlueCaret
  • 4,719
  • 7
  • 30
  • 48
72
votes
2 answers

Is there a way of making "npm ci" install devDependencies, or "npm install" not update package-lock.json?

I'm trying to put together documentation for new developers installing our codebase on their local development environments. I'd like to give them command(s) that: Installs both devDependencies and dependencies based on the versions in…
josh
  • 9,038
  • 8
  • 31
  • 37
71
votes
19 answers

Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile

I have updated node today and I'm getting this error: error: TypeError: Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile (/Users/.../node_modules/metro/src/Bundler.js:48:30) at runMicrotasks…
Chaudhry Talha
  • 7,231
  • 11
  • 67
  • 116
71
votes
20 answers

npm error E401: Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager"

I upgraded node version to 12.16.2 and npm version to 6.14.4. After that I am not able to run npm install, as I'm getting this error code E401 npm ERR! Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager" I even tried…
Rahul Dole
  • 2,723
  • 2
  • 24
  • 30
70
votes
8 answers

npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues

I'm getting below error while creating a new Angular application - npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual…
jaihind
  • 1,090
  • 1
  • 8
  • 9
69
votes
17 answers

"ERESOLVE unable to resolve dependency tree" when installing npm react-facebook-login

Trying to install npm react-facebook-login in my react app, but I keep getting dependency errors? That sounds scary and I don't want to force install something that can potentially break in the future. I'm new to javascript, what are some ways I…
andres
  • 1,558
  • 7
  • 24
  • 62
69
votes
7 answers

How to install node.tar.xz file in linux

I recently downloaded the Nodejs file from the official site and I don't know how to install the Nodejs from a archived file. Please help me how can I install this file so that I can run the "npm" command from the CLI for installation of several…
Learn More
  • 937
  • 1
  • 8
  • 8
69
votes
2 answers

What is the purpose of using --save-exact

Want to know the use of -exact with --save npm i typescript@3.4 --save-dev --save-exact
Mike
  • 1,048
  • 2
  • 11
  • 23
69
votes
4 answers

How to use npm modules in browser? is possible to use them even in local (PC)?

I'm new to npm module and node.js so it is really difficult to me. I have a js code whit many points and for each one of them I want to get the nearest city. To do this, in other question (Reverse geocoding with big array is fastest way? -…
Borja
  • 3,359
  • 7
  • 33
  • 66
69
votes
18 answers

Installing npm package fails with 404

Using the command prompt, I am trying to install angular CLI and it fails. I have npm version 5.5.1 and node version v8.9.1. I am trying to install angular cli using the command npm install -g @angular/cli@latest and it fails with the…
theandroid
  • 809
  • 1
  • 6
  • 13
67
votes
6 answers

After `npm install` an error about a syntax error in python appears?

I am trying to install the necessary dependencies for Exokit, but I am getting an error relating to a Python syntax error. This is for a something new I wanted to try involving VR in the browser. I've recloned the repository from their github and…
Revircs
  • 1,312
  • 3
  • 12
  • 23
67
votes
11 answers

npm gets stuck on fetchMetadata -> network

My npm is getting stuck a lot, whether its npm install from package.json or individual packages. Right now, I'm not even able to sudo npm install node-inspector -g I'm using node 6.2.1, npm 3.9.5 on ubuntu 16.04 npm cache clear didn't help. The…
Dushyant Bangal
  • 6,048
  • 8
  • 48
  • 80