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
23
votes
1 answer

Should I install all the peer-dependencies manually to remove npm warnings?

I installed via npm several angular packages, and I have this warning: @angular/compiler-cli@7.2.5 requires a peer of typescript@>=3.1.1 <3.3 but none is installed. You must…
serge
  • 13,940
  • 35
  • 121
  • 205
23
votes
2 answers

GitLab CI: How can I reuse installed npm packages between jobs?

I have a GitLab Pages site that uses Gulp for building. My .gitlab-ci.yml file looks similar to this: image: node:latest before_script: - npm install gulp-cli -g - npm install gulp [...and a whole bunch of packages] --save-dev build: stage:…
user341554
  • 569
  • 2
  • 8
  • 16
22
votes
3 answers

NPM : Cannot find module 'node-gyp/bin/node-gyp'

I'm using NPM under my ubuntu 14.04 and node 8.0.0 . I have upgraded my npm from 5.2.0 to 5.6.0 but after that all npm commands are failing , indicating a problem of : node-gyp/bin/node-gyp The complete log is the following : npm ERR! code…
firasKoubaa
  • 6,439
  • 25
  • 79
  • 148
22
votes
24 answers

Not able to install @angular/cli using npm

I am new to "@angular/cli", I have tried every thing but could not install. I am tired now please some one can help me to install angular 4 "@angular/cli" in my system. node and npm Version and when I am installing "npm install -g @angular/cli"…
Rajpurohit
  • 1,951
  • 2
  • 16
  • 19
22
votes
3 answers

How to run a post-install script after individual execution of "npm install "

I am maintaining the following directory structure: /home/user/Desktop/ |-- app/ | |-- package.json | `-- server.js |-- node/ | |-- bin/ …
dibyendu
  • 515
  • 1
  • 5
  • 16
22
votes
15 answers

npm ERR! tarball.destroy is not a function

Hi I'm having issue while installing react-dom module. I'm able install other modules like react express modules, on windows 10. 64 bit machine npm install react-dom npm WARN package.json -panel-client@1.0.0 No description npm WARN package.json…
Ningappa
  • 1,279
  • 4
  • 16
  • 26
21
votes
4 answers

npm login not allowing login to github

When I try to run the following in the terminal it should ask me for username and password but nothing comes up other than the error bellow. npm login --registry=https://npm.pkg.github.com --scope=@Psychedelic npm notice Log in on…
StackGod
  • 221
  • 1
  • 2
  • 4
21
votes
15 answers

npm ERR! code ERR_SOCKET_TIMEOUT npm ERR! network Socket timeout

This the error: npm ERR! code ERR_SOCKET_TIMEOUT npm ERR! network Socket timeout npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network…
Ira
  • 231
  • 1
  • 2
  • 5
21
votes
9 answers

request to https://registry.npmjs.org/co failed

If I do npm install in my repository. I get the below error npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY npm ERR! request to https://registry.npmjs.org/co failed, reason: unable to get local issuer…
Thangakumar D
  • 714
  • 5
  • 12
  • 27
21
votes
5 answers

Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

i am trying to install all dependencies using npm install command, but while installing it i am getting error like below : ling source file ..\src\threaded_callback_invokation.cc) c:\applatest\applatest\node_modules\nan\nan.h(1478): warning C4996:…
sejal
  • 221
  • 1
  • 2
  • 4
21
votes
1 answer

Why must I run "npm install" twice for my package to install successfully

The first time I "npm install" package_1, I get the following error. npm ERR! path C:\Users\john_\Documents\GitHub\why_npm_nesting_fails\package_1\node_modules\.staging\bignumber.js-55edd243 I don't use "bignumber" so assume it's a MySQL…
grabbag
  • 980
  • 1
  • 15
  • 33
21
votes
3 answers

Is there's a command for yarn to install a subfolder?

Background: We are using yarn in this project and we don't want to write our package.json scripts with a mix of npm/yarn commands. I have a root directory which contains a few subfolders. Each holds a different service. I want to create a script in…
ueeieiie
  • 1,412
  • 2
  • 15
  • 42
21
votes
9 answers

name can only contain URL-friendly characters

I was trying to install package.json with npm init to install bootstrap in my folder but i am getting the error. npm install bootstrap@4.0.0-alpha.6 --save I am new to this i can't exactly figure what i am doing wrong. I was following a tutorial…
isrj5
  • 375
  • 1
  • 2
  • 14
21
votes
4 answers

gyp ERR, Npm is unable to get local issuer certificate

I am working on clean Windows 10 installation. Only thing is cygwin that I installed to get unix commands in the cmd. When I type npm install -g @angular/cli it downloads the necessary files but I receive an error: gyp ERR! configure error gyp ERR!…
metal_man
  • 580
  • 1
  • 9
  • 22
21
votes
1 answer

What is the difference between electron and electron-prebuilt?

Saw many times that package name, but did't get when do I need to install it instead of common electron...
GProst
  • 9,229
  • 3
  • 25
  • 47