Questions tagged [nvm]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
34 views

Install nvm, node in closed network

I want to use multiple node version for my development. Of course I know I can simply use nvm-windows in normal case... But the problem is that the place where I want to install multiple node is ...
HE'S BAEK's user avatar
0 votes
1 answer
41 views

How to install nvm in mac?

I am unable to install nvm in my mac. I have installed node and it's running perfectly fine but unable to install nvm on my system. while checking node version it showing : node -v v21.3.0 but when i ...
Ritesh's user avatar
  • 4,758
-2 votes
1 answer
26 views

I tried installing nvm on mac but it shows already installed and then when i try to get its version or use any commands it errors out

-MacBook-Air ~ % brew install nvm Warning: nvm 0.39.5 is already installed and up-to-date. To reinstall 0.39.5, run: brew reinstall nvm -MacBook-Air ~ % nvm --version zsh: command not found: nvm -...
user101's user avatar
  • 55
0 votes
1 answer
36 views

Switching node version in windows

I could see different version of node are installed in my machine. When I am switching to older version of node using nvm use command, its showing me successful but not reflacting on the console. Any ...
Rashid's user avatar
  • 355
0 votes
0 answers
11 views

Newer version of NVM throwing error while older version is working as expected [duplicate]

I am trying to install NVM on amazon ec2. When trying to install nvm 0.35.9 (latest) I am running into error that says Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zprofile, ~/.zshrc, and ~/...
lovekesh's user avatar
-4 votes
0 answers
54 views

What's the difference between nvm and npm?

I am unfamiliar with the javascript environment because I mainly use python. first, InstallIng nvm to control the Nodejs version. second, install the package using npm to managing each project? then, ...
GH00N's user avatar
  • 33
0 votes
0 answers
58 views

/usr/bin/env: ‘node’: No such file or directory in VSC only [duplicate]

I have a project with a Husky git pre-commit hook: #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" yarn lint-staged If I commit from Terminal, the hook and commit work fine. ...
Ryan's user avatar
  • 22.3k
0 votes
0 answers
23 views

Problem Downgrading Node Version in Angular Project with NVM

I'm currently facing an issue while trying to downgrade the Node.js version in my Angular project using NVM (Node Version Manager). I'm specifically aiming to shift to Node.js version 16.20.2. However,...
tud10's user avatar
  • 1
0 votes
0 answers
26 views

Set default node version using nvm

I am having three versions of my project. And I have three .nvmrc files associated with it. In the build server, I use nvm use to pick the version that is required for that version. But somehow with ...
lrr59's user avatar
  • 139
-1 votes
0 answers
7 views

how can i install nvm ? .cannnot use this. curl -sL raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh -o install_nvm.sh

I have been trying to install the node.js desired version using nvm (v18.16.1 ). I cannot find other than "curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh -o install_nvm....
ashique's user avatar
  • 993
0 votes
1 answer
175 views

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader

I get the following error when trying to run yarn dev to launch a discord bot. I am using typescript. I have already tried using nvm to update the node js version. I even tried using lower versions of ...
Hoko A's user avatar
  • 57
-1 votes
1 answer
42 views

Updated NODE to Latest Version*20 but still "node -v" NODE showing the older version*18 [closed]

Even if the NVM updates/upgrades are successful, the NODE still shows the old version. NODE has been updated to the latest version20, but the command "node -v" still shows the old version18 ...
J S's user avatar
  • 11
0 votes
0 answers
20 views

NPM-Failed to replace env in config: ${platform}

enter image description here I use nvm and installed version 14.16.0 of npm. I switched to this version and tried to run 'npm i'. Then this error happened. Is that right to add 'platform' to the ...
ma shucen's user avatar
6 votes
6 answers
8k views

NextJS - ReferenceError: Request is not defined | Reading old version of Node [solved]

When I run npm run dev in my nextjs project I get the following error: .../node_modules/next/dist/server/web/spec-extension/request.js:28 class NextRequest extends Request { ^...
Lucas Slepetys's user avatar
0 votes
1 answer
69 views

nvm doesn't work/install on Manjaro linux

I need nvm to downgrade my node version. So I install it with pamac: pamac install nvm Preparing... Warning: nvm-0.39.5-1 is up to date -- skipping Nothing to do. Transaction successfully finished. ...
Francisco's user avatar
0 votes
1 answer
45 views

Dockerfile installs node but getting "/bin/bash: node: command not found" error

I have a Dockerfile that switches users for package installation FROM private_registry # Use root to install packages and create tmp dir USER root WORKDIR /tmp RUN yum -y install gcc gcc-c++ kernel-...
yung peso's user avatar
  • 1,658
-1 votes
1 answer
153 views

Installing NVM - curl: (23) Failure writing output to destination - Permision denied

I was trying to download the node 18 on Ubuntu 22.04, however, I couldn't do it by apt-get or do so by nvm. I need help, because without node I can't develop my projetcs. I'm from Brazil, so some of ...
Vinícius Pires's user avatar
1 vote
1 answer
64 views

Unable to create Vue app, got Error: you are using an outdated version of NPM, But I have the latest version

My environment: I am using Ubuntu 22.04.3 Node Version: v18.18.2 NPM Version: 10.2.1 Vue version: @vue/cli 5.0.8 I used NVM to install Node. Then I proceeded to check the version of npm, which was 9.x,...
PriyanJ's user avatar
  • 15
0 votes
1 answer
121 views

Node not recognizing correct default version

I have been unable to change, or at least get node to recognize my default node version as v20.8.1. I installed the version and ran nvm list to confirm that it was installed, and it's there. I also ...
techmeowt's user avatar
  • 213
0 votes
1 answer
29 views

How to run a application locally on an out of date node version

I have an app that runs on node 12 and 14 via nvm. % nvm current v14.21.3 but when i try and call ionic i get the error: ERR: Your Node.js version is v14.21.3. Node.js 14 reached end-of-life on ...
Staggerlee011's user avatar
2 votes
0 answers
184 views

`node version` and `sudo node version` give different results?

How can it be that my installed node version is 18.17.0 - $ node --version v18.17.0 but still trying to install packages gives me this? $ sudo -E npm i dependency-cruiser npm WARN cli npm v10.2.0 ...
Ofek Shilon's user avatar
  • 15.2k
0 votes
0 answers
62 views

EISDIR: illegal operation on a directory, read error in all Vite projects on Ubuntu 23

I'm experiencing an issue with all of my Vite projects on my Ubuntu 23 machine. Whenever I try to start any Vite project, I get the following error: error when starting dev server: Error: EISDIR: ...
SergioMoLo's user avatar
-1 votes
1 answer
38 views

Node running unexisting version

When i try to install strapi in my Angular application I obtain this error: You are running Node.js 14.20.0 Strapi requires Node.js >=16.0.0 <=20.x.x Please make sure to use the right version of ...
Federico Offidani's user avatar
-2 votes
1 answer
125 views

How to Create a specific version of an Ionic Project using the CLI?

I need to create different Ionic-Angular projects, with different versions of the Ionic and Angular core, that specifically run on different versions of Node: For example: Node V. Angular V. Angular ...
Gydunhn_'s user avatar
0 votes
0 answers
38 views

How NVM Command in a .service

I searched around for .service file that start a screen and also run "nvm start" It's for a Discord Bot to automatically start. The problem is that when I start the .service file, it's ...
lul.two's user avatar
1 vote
0 answers
142 views

Error using "npm" command on Node 14.X versions. 'timers/promises' module not found

Only on node 14.X I have this problem. I basically can't run any npm command when switching to Node 14 using nvm. Im trying to run a gatsby proyect that was working fine until 1 week ago. It needs a ...
Alejandro's user avatar
0 votes
2 answers
46 views

Node version reports different version than installed

In order to use aws cdk I'm required to update node, but apparently I'm already set. I must have installed nodejs without pacman but can't rememember how. Any ideas where to start in order to get it ...
jjk's user avatar
  • 610
-2 votes
1 answer
191 views

Why is nvm switching versions automatically when I change directory to "node_modules" in my project? There is no '.nvmrc' file in the directory

See this screen recording: After running npm install and then changing directories to the node_modules folder, nvm is automatically switching me to the default version of node on my system (v20.5.1). ...
fmotion1's user avatar
  • 331
0 votes
1 answer
419 views

How to make a version of NODE default? [duplicate]

When I restart the terminal in NODE it goes back to version 16, but I want to make version 18 the default, without having to run the command "nvm use 18.17.1" every time. I thank. With NODE ...
Tarcisio Dev's user avatar
0 votes
0 answers
31 views

Husky precommit does not run in Windows when using NVM

Followed all the Husky instructions, installed Husky, checked the husky directory was there, but when using nvm in windows, the pre-commit hook does not run. Also used the .huskyrc script suggested in ...
Mickey Puri's user avatar
0 votes
0 answers
65 views

How to resolve angular error: "Cannot find module 'ansi-colors'"?

Every time I tried to enter a command that start with "ng" I got this error, the complete error is: node:internal/modules/cjs/loader:1077 const err = new Error(message); ^ Error: Cannot find ...
AmirAli Rashidi's user avatar
1 vote
1 answer
267 views

ERROR: npm v9.6.7 is known not to run on Node.js v18.17.1

I am using nvm to manage my Node.js versions. Recently, I installed Node.js version 18.17.1 using nvm, but when I try to use npm, I get the following error message: ERROR: npm v9.6.7 is known not to ...
Nuwanthi's user avatar
0 votes
0 answers
293 views

How to use npm with asdf and Nodejs v11 - I get segmentation faults

For a new project on my Ubuntu 22.04.3 LTS, I had to make the switch from nvm to asdf. I ran nvm deactivate nvm uninstall 20 nvm uninstall ...[all locally available node versions] npm unload then ...
RSeidelsohn's user avatar
  • 1,149
0 votes
1 answer
135 views

Error: EACCES: permission denied, rename. Using WSL

I am creating next app using turborepo on wsl. But got below error I tried fixing it using Error: EACCES: permission denied but it did not work. when I am running npx create-next-app@latest in home ...
Gaurav Kumar's user avatar
0 votes
0 answers
52 views

Change Node version with NVM before/while running python script

I need to use a specific version of node.js in order to compile a js project from python code. However, the version might change between runs of the python code. When I try setting the version with os....
Placido Pellegriti's user avatar
0 votes
1 answer
21 views

can docker overwrite PATH for macos? [closed]

I am having a problem with PATH. Every time I run docker compose and stop containers I no longer can for example run node -v or nvm -v. Restarting computer does not help. I always have to run ...
howard wolowitz's user avatar
1 vote
1 answer
28 views

The alias "default" leads to an infinite loop. Aborting

nvm use default The alias "default" leads to an infinite loop. Aborting. .. the alias is pointing to v14.21.1 trying to reset the alias tried to set it again ... nvm alias ...
M.N's user avatar
  • 31
0 votes
2 answers
70 views

How I use nvm script in the rust?

Firstly, I'm a Rust newbie. recently, I want to write some rust code that help me to switch node version automaticaly in every frontend project. so, I read some rust docs, I pick std::process::Command ...
willliamontheway's user avatar
2 votes
0 answers
62 views

Setting $BASH_ENV to a script outputs entire contents of script to Jenkins console

I have a need for nvm to run in a Docker container running as a Jenkins agent. I was able to get nvm to work in this context by setting $BASH_ENV to $NVM_DIR/nvm.sh. This achieves the desired result ...
RawLamb's user avatar
  • 117
0 votes
0 answers
18 views

node -v not matching nvm selection

I'm trying to switch my node version using nvm (on MacOS) but after setting the node, the version is not the selected $ nvm which node [10:39:48] /...
Huckleberry Carignan's user avatar
0 votes
1 answer
82 views

Browsershot stopped working after reinstalling npm and node with node version manager

I reinstalled node and npm with nvm after facing EACCES permissions errors when installing npm-check-updates globally. Resolving EACCES permissions errors when installing packages globally This fixed ...
lance2k's user avatar
  • 380
0 votes
0 answers
201 views

Lerna return lerna success run No packages found with the lifecycle script 'build'

when i try to run lerna run build --stream it runs a long time and fails with lerna success run No packages found with the lifecycle script 'build'. The repository was up to date and i have 0 changes ...
Caychu's user avatar
  • 1
6 votes
2 answers
8k views

npm ERR! Unsupported URL Type: npm:string-width@^4.2.0

I have got problem with installation project from collegue in other computer. PS C:\Users\cerno\git\iotian-cli\iotian-cli> nvm use 6.0.0 Now using node v6.0.0 (64-bit) PS C:\Users\cerno\git\iotian-...
Jan Mareš's user avatar
0 votes
0 answers
41 views

I used nvm command but the current node version still remains first state

everyone. I need your help for using nvm & node. I am running a vue.js & express project. Front-end need node version 12 and back-end need 14.16. I installed nvm and ran this command nvm ...
Michael Hayashi's user avatar
0 votes
2 answers
36 views

At the beginning of the 'udemy-react' course, there are some settings that are not working. - bash portion of nvm setup

the next list is following the course settings. I'm just following that I'm a beginner at Mac computers. I used to deal with design programs such as pigma. (mac os monterey ) vscode install open ...
hangu's user avatar
  • 1
1 vote
1 answer
351 views

expo app can't find the path specified in ...node_modules\cross-spawn\lib\enoent.js

I have created an expo app using different commands and I still end up with the same error while starting metro bundler. Error: The system cannot find the path specified. at notFoundError (C:\...
Godwin Ikechukwu's user avatar
0 votes
0 answers
31 views

NativeScript script try to modify Node.JS public directory and failed - Error: EPERM: operation not permitted

I try to start Github example from there https://github.com/NativeScript/nativescript-marketplace-demo and unfortunately failed. First message I received was "The current application is not ...
Viacheslav Dev's user avatar
1 vote
1 answer
200 views

About `npm install -g` cannot add to environment variables

English is not my mother tongue, I will try my best to describe the problem. I use nvm for windows to manage my node. And my node version is 18.17.0. When I use npm install -g pnpm, actually it ...
WuJunpu's user avatar
  • 11
0 votes
1 answer
36 views

Npm missing inside rider terminal but active in Windows Powershell

I am using nvm to use different versions of node currently I use either node 18.15.0 or node 16.17.0. When I use my normal windows terminal (powershell 7.3.6) it works with no issues. However when ...
Johan Martinson's user avatar
0 votes
1 answer
10 views

nvm npm node versions become unavailable on reopening the terminal

I tried to install nvm on my. system using this command - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash >> already installed IN /Users/usersname/.nvm, trying ...
paraS elixiR's user avatar
  • 2,046

1
2 3 4 5
23