Questions tagged [nvm]

Node Version Manager - Simple bash script to manage multiple active node.js versions

nvm is a version manager for Node.js. It is designed to be installed per-user and invoked per-shell. nvm works on any POSIX-compliant shell (sh, dash, ksh, zsh, bash). It works on Unix-like operating systems, including Linux, macOS, and Windows WSL.

References

1092 questions
22
votes
2 answers

Unsupported engine node / NPM only when building in Docker

I have a dependency in my package.json which itself has the following dependency: "node-rdkafka": "^2.5.0", Using nvm on my local machine and setting my node version to 8.9.1, and my npm version is 5.5.1, I can successfully run npm install…
Greg Peckory
  • 7,700
  • 21
  • 67
  • 114
22
votes
7 answers

How to upgrade my global vue-cli install to the latest version?

I already have vue-cli 3.5.5 installed. When I run vue create myapp, it shows message Update available 3.6.2. Vue CLI v3.5.5 ┌───────────────────────────┐ │ Update available: 3.6.2 │ └───────────────────────────┘ How to upgrade vue-cli to the…
HelloWorld101
  • 3,878
  • 2
  • 34
  • 47
22
votes
2 answers

Locking NPM version?

I am using .nvmrc file to lock in my Node version for my project. Is there a way to lock in my NPM version as well? I want to make sure that anyone that runs my project is on the same setup.
jjoan
  • 383
  • 1
  • 3
  • 17
21
votes
3 answers

How to source shell script with npm scripts?

I have a script in my package.json: { "scripts": { "start": "source run-nvm.sh && ..." } } But running source run-nvm.sh && ... is different to yarn start (or npm run start). Why? It creates a subshell. So I can't change environment of the…
Jerry Green
  • 1,244
  • 1
  • 15
  • 25
21
votes
5 answers

env: node: No such file or directory

env: node: No such file or directory I checked if my directory for node wasn't wrong and it's fine. I tried these following answers already: 1. https://github.com/nodejs/node-v0.x-archive/issues/3911 2.…
Choi
  • 483
  • 1
  • 3
  • 15
21
votes
9 answers

Error "Cannot find module 'npmlog'" after "npm update -g"

I have NVM 0.30.1 and used it to install node.js v5.4.0 (with NPM 3.5.4) on Fedora 22. When I run npm update -g, I receive the following warnings: npm WARN EBUNDLEOVERRIDE Replacing bundled npm > init-package-json with new installed version npm WARN…
peflorencio
  • 2,284
  • 2
  • 32
  • 40
18
votes
3 answers

Can't update npm packages: ERR! code EEXIST

I'm trying to to upgrade npm packages via npm update -g But, I get this error: npm ERR! path C:\Program Files\nodejs\npm npm ERR! code EEXIST npm ERR! Refusing to delete C:\Program Files\nodejs\npm: is outside C:\Program…
Lazloman
  • 1,289
  • 5
  • 25
  • 50
18
votes
4 answers

A dotfile that will set the default node version on a project using nvm?

In ruby when using rbenv you can make a .ruby-version file and put it in the local directory. https://gist.github.com/fnichol/1912050 I'm looking for something similar to this using NVM? Question: Is there a property to set in package.json or a…
Armeen Moon
  • 18,061
  • 35
  • 120
  • 233
18
votes
6 answers

NVM giving error while doing nvm ls

I was trying to install and switch between node version, so i first install nvm using below Administrators-MacBook-Pro:~ user.name$ sudo npm install nvm -g Password: npm http GET https://registry.npmjs.org/nvm npm http 304…
Amit
  • 6,839
  • 21
  • 56
  • 90
16
votes
2 answers

understanding the output of `nvm ls`. Is everything installed properly?

I think I may have done something untoward during the install process of nodejs and nvm. When I start bash or open a terminal I get: :~$ bash N/A: version "N/A -> N/A" is not yet installed. You need to run "nvm install N/A" to install it before…
Madivad
  • 2,999
  • 7
  • 33
  • 60
16
votes
4 answers

NVM is not working on Jenkins execute shell

I am trying to install and use nvm from the Jenkins execute shell script on Ubuntu server but I am getting this error: 16:00:21 /tmp/hudson5983664925305072739.sh: line 8: nvm: command not found This is what I have tried those so far but no…
mirza
  • 5,685
  • 10
  • 43
  • 73
15
votes
5 answers

VSCode terminal task not using zsh profile

I'm trying to run a task on window load in VSCode where a terminal opens and nvm use && yarn dev is run by default. However, running this shell tasks seems to not load my zsh profile. The output I get from running my task is: The terminal process…
Alex McLean
  • 2,524
  • 5
  • 30
  • 53
15
votes
3 answers

ERROR: code ELIFECYCLE npm ERR! errno 134

To download the necessary modules(MSS), navigate with the terminal to the local folder on which the repository has been cloned by launching: npm install then I try to build the I project with: npm run build-dev but I get this error: npm ERR! code…
Licemoon
  • 151
  • 1
  • 1
  • 5
15
votes
4 answers

Restart terminal & run command using Dockerfile

I have a Dockerfile where I am installing nvm. After installation, i'll be needing to install node 5.11 using nvm. The problem is, after installing nvm, the terminal needs to be closed & run again in-order to to have nvm command available. My…
Yeasin Hossain
  • 769
  • 2
  • 6
  • 23
15
votes
3 answers

Where does nvm store node.js installations?

I can't find the location of node.js installations, downloaded and installed via e.g.: nvm install 5.0 Do you know the answer?
Boris Burkov
  • 13,420
  • 17
  • 74
  • 109