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
56
votes
4 answers

Using "npm install" to install jquery-ui

I see from here https://github.com/jquery/jquery-ui that jquery-ui's latest release is 1.11.4. However, when I use "npm install jquery-ui", it's only 1.10.3. I checked this version in node_modules/jquery-ui/jquery-ui.js. Is there any way for me to…
Bomin
  • 1,619
  • 5
  • 24
  • 39
54
votes
26 answers

npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/react-is (over 30000ms)

When I want to create a react app I'm encountering the following error: npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/react-is (over 30000ms) npm ERR! A complete log of this run can be found in: npm ERR! …
Zack-gtay
  • 641
  • 1
  • 5
  • 4
54
votes
2 answers

Difference between `npm link x` and `npm install /path/to/x`

I thought I understood the difference between npm link x and npm install /local/path/to/x originally I thought the former created a symlink to x, whereas the latter installed a separate copy of x in your project, instead of symlinking it. However,…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
52
votes
7 answers

NPM node-sass installation fails

I am trying to install node-sass in a project, which perfectly builds and runs on my pc but on my surface I am having major issues when trying to install the packages. Note: I have tryed reinstalling and rebuilding the project several times. Summary…
Maxdola
  • 1,562
  • 2
  • 10
  • 29
52
votes
3 answers

What does "Linking Dependencies" during npm / yarn install really do?

For large web apps npm install resp. yarn install does take a lot of time, mostly in a step called Linking Dependencies. What is happening here? Is it fetching the dependencies of the dependencies? Or something completely different? Which files are…
medihack
  • 16,045
  • 21
  • 90
  • 134
52
votes
4 answers

Why is npm running prepare script after npm install, and how can I stop it?

Whenever I run npm install it installs the package alright, but then it automatically runs the prepare script. It's worth mentioning that I've already checked that there is no postinstall script in the package.json.
Alex Zak
  • 1,924
  • 2
  • 18
  • 26
51
votes
11 answers

The command "npm run build -- --prod" exited with code 1 error

I'm developing an Asp.Net Core 2 and Angular 5 project in visual studio 2017. When I'm going to publish my project then the error 'The command "npm run build -- --prod" exited with code 1' show in error list window. I created the project with…
Iman Bahrampour
  • 6,180
  • 2
  • 41
  • 64
50
votes
2 answers

Command to use restoring npm packages

When I download a project from my repo with a package.json in its root, which command is the right one to use npm install or npm install restore?
Sam
  • 26,817
  • 58
  • 206
  • 383
50
votes
3 answers

How to specify registry while doing npm install with git remote url?

I want to be able to clone a git repository using a URL as specified here ://[[:]@][:][:][/][#] I am getting an error saying npm ERR! 404 Registry returned 404 for GET on …
gurvinder372
  • 66,980
  • 10
  • 72
  • 94
49
votes
3 answers

Install Chrome Headless using NPM

Chrome Headless is fantastic!!! But is there a way I can install Chrome Headless using NPM so that can I use it for my unit tests in automated test environments? Is there an alternative way of doing this? Many thanks in advance!!!
Abhi
  • 1,624
  • 2
  • 16
  • 29
46
votes
6 answers

How to npm install to only save dependency to package.json?

I'm adding dependencies to a package.json that will be used as part of a provisioning process for a virtual machine. As such, I don't actually need to install the modules locally since the provisioner will do that for me inside the VM. So is there…
Soviut
  • 88,194
  • 49
  • 192
  • 260
45
votes
4 answers

Cannot find module 'asap/raw'

i have started a new react-native project and after that i installed react-native-maps i can't run react-native run-android because the terminal displays the following error: module.js:550 throw err; ^ Error: Cannot find module 'asap/raw' …
V.Cozzatella
  • 709
  • 2
  • 9
  • 15
43
votes
9 answers

Webpack command not found

I have installed webpack using npm install -g webpack and npm install webpack I also installed webpack-dev-server npm install -g webpack-dev-server After completion of installation, I ran the command webpack but, it shows below error webpack:…
Bishnu Bhattarai
  • 2,800
  • 8
  • 36
  • 44
43
votes
9 answers

Error: Cannot read property 'replace' of undefined when building iOS Cordova

I created a cordova project using cordova create project hello com.hello Hello. And added iOS platform using cordova platform add iOS. And tried to do cordova run ios after cordova build ios. But it shows me this error(I used --d/ --verbose to get…
Fenix
  • 1,552
  • 2
  • 23
  • 44
42
votes
7 answers

NPM 7 workspaces - how to install new package in workspace?

If I have a NPM 7 workspace like this: root - submodule0 - submodule1 - submodule2 and I navigate to the submodule0 directory and run npm i somepackage it seems to "break" the workspace by creating a new package-lock.json in the submodule0…
Dave Welling
  • 1,678
  • 1
  • 17
  • 13