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
41
votes
9 answers

nvm install node fails to install on macOS Big Sur M1 Chip

I'm trying to install the latest version of node using nvm. I've just got the newly released SIlicon Macbook Pro with the M1 chip (not sure if that is related). I've installed xcode on the app store and the xcode tools on the command line. The main…
adityaatri
  • 1,967
  • 2
  • 7
  • 10
40
votes
1 answer

What is the NPM equivalent of "yarn install --frozen-lockfile"?

I'm using npm as part of me building the production docker image. I want to make sure the package-lock.json doesn't change and matches.
user972014
  • 3,296
  • 6
  • 49
  • 89
40
votes
4 answers

How to fix NPM package Tar, with high vulnerability about Arbitrary File Overwrite, when package is up to date?

I just installed Flickity from NPM and got an NPM Audit Security Report after running npm audit stating that I have a high vulnerability issue regarding Arbitrary File Overwrite on package tar which is a dependency of node-sass as you can see…
Wilbert Caba
  • 530
  • 1
  • 6
  • 13
40
votes
3 answers

Making Global NPM packages available to all users on windows 2012 server

I am trying to install continues integration server. This server will pull data from GIT and it will try to build the application. Since I am using windows 2012 server, multiple users can trigger the build. For this purpose, I want to ensure all the…
OpenStack
  • 5,048
  • 9
  • 34
  • 69
39
votes
4 answers

Gitlab CI: npm doesn't like the cached node_modules

The internet is full of complains about Gitlab not caching, but in my case I think, that Gitlab CI indeed caches correctly. The thing is, that npm seems to install everything again anyway. cache: key: ${CI_COMMIT_REF_SLUG} paths: -…
TimSch
  • 1,189
  • 1
  • 12
  • 27
39
votes
12 answers

npm install: Failed at the node-sass@3.13.1 postinstall script

I have a angular application: https://github.com/XBITSwitzerland/ngx-admin/tree/ng2-admin And now I try to do: npm install But I get this error (The compete Output of the command was way too long, so I just share here the last part): gyp ERR! build…
BlockchainProgrammer
  • 1,999
  • 5
  • 20
  • 32
39
votes
6 answers

'cross-env' is not recognized as an internal or external command,

Guys can you please help me on this I have trouble run npm run dev for my Laravel Mix. I followed links below but still error exist. Do i have a problem on my OS? I tried to remove node_modules, run npm install --global cross-env. and run NPM…
Jesray Garciano
  • 413
  • 1
  • 4
  • 9
39
votes
11 answers

npm ERR! Error: connect ECONNREFUSED when trying to update the npm

I'm trying to update the npm (node package manager) using the command: npm install npm@latest -g but I'm getting the following error in the command prompt: npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe"…
NickJS
  • 427
  • 1
  • 4
  • 8
39
votes
19 answers

Error : getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443

I am working on a corporate network. Trying to install npm. But I'm getting this error again and again. $ npm install npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program …
Bhuvaneshwari K
  • 415
  • 1
  • 4
  • 13
38
votes
2 answers

npm install: when to use --no-bin-links?

When and why should we use the option --no-bin-links when we install npm packages? The official docs say: The --no-bin-links argument will prevent npm from creating symlinks for any binaries the package might contain. But it is still unclear to me…
Vijey
  • 6,536
  • 7
  • 43
  • 50
37
votes
4 answers

Install Angular Unsupported Engine, OSX

I am reinstalling my MacBook. And I receive the following message when I install (npm install -g @angular/cli) angular. Any idea why? I suspect the nom version but I comes along with node... Developments npm install -g @angular/cli npm WARN…
Jean-Philippe M
  • 731
  • 1
  • 7
  • 19
37
votes
6 answers

How to fix - Module not found: Can't resolve '@babel/runtime/helpers/objectWithoutPropertiesLoose'

I am working on a project of react and I am getting the following error after implement this package https://www.npmjs.com/package/react-bootstrap-typeahead then i get the following error. Failed to…
amaan rajput
  • 571
  • 1
  • 4
  • 10
36
votes
18 answers

Npm ERR! code EPERM

I'm using node v6.11.2, npm v5.3.0 and angular/cli v1.2.7. I'm suddenly receiving the following error message for a majority of my npm installs. Never seen it before... mmeppiel@MC-LT-MMEPPIEL MINGW64 ~/Desktop/Angular Solutions/my-app (master) $…
Matthew Meppiel
  • 966
  • 3
  • 14
  • 29
36
votes
8 answers

cannot read property 'apply' of undefined gulp

I am trying to use the ng-factory generator to scaffold a new project to build an angularjs component. After the project has been created with the yo ng-factory command, I tried to run it using the gulp serve task but found the following…
atul kale
  • 361
  • 1
  • 3
  • 4
35
votes
10 answers

How to fix Something went wrong installing the "sharp" module and Cannot find module '../build/Release/sharp.node' in expo

I tried to install expo after I executed the command exp start but I got: Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp.node'. How can I fix this problem?
zaki tutu
  • 595
  • 3
  • 7
  • 16