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
29
votes
10 answers

npm WARN: npm does not support Node.js v12.4.0

I've been getting the following warnings lately whenever I run any npm script: npm WARN npm npm does not support Node.js v12.4.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
29
votes
5 answers

How I can skip installing optional dependencies by 'npm ci'?

How I can skip installing optional dependencies from package-lock.json by npm ci?
art201214
  • 437
  • 1
  • 4
  • 10
29
votes
2 answers

node: relocation error: node: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference

I've been running a NodeJS server for a website using the MEAN stack for a website, and it's been running for a few months. When I started to work on it again this morning, I started up the website with: nodemon server/app.js The express server…
Mike K.
  • 543
  • 3
  • 14
  • 46
26
votes
6 answers

Npm install from repo not running `prepare`

I have an npm package for common components hosted on an internal git server. For some reason when I call npm install in another project I want to consume this in it will not run the prepare hook. Obviously, this does not work since the npm package…
Midevilworm
  • 451
  • 5
  • 10
26
votes
1 answer

NPM preinstall script

I am trying to run some policing script before any packages are installed. For Example: { "name": "pre-hook-check", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" &&…
user98239820
  • 1,411
  • 2
  • 16
  • 30
26
votes
2 answers

Is npm install the same as npm install --save?

I'm looking at the doc page for node and I'm not clear if npm install gulp-util is the same as npm install gulp-util --save In the doc it says: "By default, npm install will install all modules listed as dependencies in package.json" That feels…
Peter Kellner
  • 14,748
  • 25
  • 102
  • 188
25
votes
2 answers

python.exe Syntax issue - NPM

I am having trouble when running Npm install. I get the following error: gyp ERR! stack Error: Command failed: C:\Users\userxxx\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR!…
M guy
  • 409
  • 1
  • 5
  • 11
25
votes
3 answers

Release of ASP.NET core App: The command "npm install" exited with code 9009

I have a ASP.NET Core solution with a React frontend. I now have a problem I cannot release the code using the normal release window inside Visual Studio. I publish to a web app inside Azure web apps, and it works perfectly for all my other…
25
votes
1 answer

Does npm cache packages?

In my server, npm doesn't cache any package and cache directory is empty. #www@iZ2zefuufnen6rfx7c81u7Z:~/.npm$ nvm current v9.4.0 # www@iZ2zefuufnen6rfx7c81u7Z:~/.npm$ npm config get cache /home/www/.npm # www@iZ2zefuufnen6rfx7c81u7Z:~/.npm$…
fcce
  • 1,034
  • 1
  • 12
  • 24
25
votes
6 answers

NPM install error Permission denied (publickey) for local repo

Getting permission denied error for a local repo in my company github, which I can clone successfully, however getting error for NPM install: npm ERR! Error while executing: npm ERR! C:\Program Files\Git\bin\git.EXE ls-remote -h -t git@
Nik
  • 351
  • 1
  • 3
  • 3
25
votes
12 answers

npm throws EACCES error on installation of Angular CLI

I am unable to install Angular Cli globally through npm. I keep getting this error when I run npm install -g @angular/cli on macOS: npm ERR! node v6.9.2 npm ERR! npm v3.10.9 npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR!…
calibre24
  • 359
  • 1
  • 3
  • 7
24
votes
2 answers

How to update package.json to latest version of each package?

Before you flag it as duplicate, I have searched for the similar questions and none of them helped me. Currently this is what I have tried: Delete package-lock.json file. Delete node_modules. Run npm update Run npm install This would always allow…
Samson
  • 1,336
  • 2
  • 13
  • 28
24
votes
3 answers

npm install, -force flag

I was installing the packages on a NodeJS backend. Then I run into an error which was the following: gyp.js" rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env…
Willem van der Veen
  • 33,665
  • 16
  • 190
  • 155
24
votes
1 answer

npm sudo global installation & unsafe-perm

I am trying to install a npm module with: sudo npm install -g now However, when I try that, I get a warning: Warning! Please try installing Now CLI again with the --unsafe-perm option. Example: npm i -g --unsafe-perm now This unsafe…
xpt
  • 20,363
  • 37
  • 127
  • 216
23
votes
13 answers

internal/modules/cjs/loader.js:883 throw err

I've ran into an issue running npm start (I've attached the screenshot of the error bellow) on my Angular project. When I run the project using ng serve, everything is working fine. I have tried several ways to fix this issue without success. This…
Raheem Mohamed
  • 789
  • 3
  • 6
  • 15