Questions tagged [n]

n is a CLI for managing multiple Node.js versions.

n is a CLI that facilitates installation of and easy switching between multiple Node.js versions.

46 questions
0
votes
1 answer

n failed to install/switch node in Linux?

I am trying to install/ switch node version in fly using n since different build requires different version of node. n is able to download specified version but it is unable to installed to /usr/bin/node and still old version there. 05-Apr-2021…
Kero
  • 1,924
  • 5
  • 33
  • 53
0
votes
1 answer

Node module is not updating

I updated my node module but now it is showing 2 diff version. terminal:~$ sudo n 15.8.0 installed : v15.8.0 (with npm 7.5.1) here what is v15.8.0 and what is 7.5.1
Azad Kumar
  • 13
  • 2
0
votes
1 answer

Updating to stable version of nodejs with n

this is my first time trying to update the nodejs version of a unix server. I want to use it to create a react app, and facing the following: >npx create-react-app test You are running Node 8.11.3. Create React App requires Node 10 or higher. Please…
agm
  • 317
  • 3
  • 15
0
votes
1 answer

switching node versions using n

[root@xx.xx.xx.xx xxxx]# n installed : v14.8.0 to /usr/local/bin/node active : v10.21.0 at /bin/node Installed node version 14.8.0 using n. Not sure how 10.21.0 was installed. Cannot delete or switch versions. I am using pm2 process…
Cola
  • 2,097
  • 4
  • 24
  • 30
0
votes
4 answers

How to install node.js

I did the following: user@machine:~$ sudo n stable installed : v12.13.0 (with npm 6.12.0) user@machine:~$ node --version v8.10.0 user@machine:~$ which node /usr/local/bin/node user@machine:~$ /usr/local/bin/node --version v12.13.0 I was…
Wyck
  • 10,311
  • 6
  • 39
  • 60
0
votes
1 answer

Angular CLI on HTTPS - can't install CI as root

I need to have my angular app over https port 443. To do that, I need to run ng as root. However, I can not get Angular CLI to install as root. Any suggestions? root@develop:~# n v9.4.0 install : node-v9.4.0 mkdir :…
dman
  • 10,406
  • 18
  • 102
  • 201
0
votes
1 answer

Node doesn't appear to update using 'n'

I just noticed I'm on node version 4.0.0 and want to update to the latest version so I installed 'n' and ran sudo n stable in terminal Machine-Name:directory name User$ sudo n stable install : node-v9.8.0 mkdir :…
froggomad
  • 1,747
  • 2
  • 17
  • 40
0
votes
2 answers

Upgrade the version of nodejs to 5.12.0

I tried to install node.js by NVM in Ubuntu 16.04 server by following this link. And I got: root@instance-15s8fbzx:/opt# nodejs --version v4.2.6 root@instance-15s8fbzx:/opt# npm --version 5.3.0 root@instance-15s8fbzx:/opt# node…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
0
votes
1 answer

Cannot change nodejs version using n

I'm working with raspbian ver 8. I have a preinstalled version of node running (ver 5.0.0). I'm trying to downgrade it to 4.6.1 using n. However, i'm getting the following error after a long wait pi@raspberrypi:~ $ sudo n 4.6.1 install :…
Haagenti
  • 5,602
  • 1
  • 9
  • 17
0
votes
2 answers

How to select the latest node.js v6 version using n?

With nvm tool one can execute nvm use 6 to select the latest installed node.js v6. How would I do the same using the n CLI tool? The command(s) will be executed on the CI.
Vasyl Boroviak
  • 5,959
  • 5
  • 51
  • 70
0
votes
3 answers

npm module n emits errors

After installing n by command 'sudo npm install -g n', I want list all node versions,but some errors come out, even though, n can work normally! As bellow: $ n list /usr/bin/n: line 262: which: command not found /usr/bin/n: line 262: which: command…
Yuga
  • 125
  • 2
  • 9
0
votes
2 answers

n (node version manager): cannot create directory

On lubuntu 14.10. I'm trying to update node with "n" (node version manager) Installed with: sudo npm install -g n without "sudo" it would fail asking for admin privileges... when trying to use "n", I always get "cannot create directory",…
tokosh
  • 1,772
  • 3
  • 20
  • 37
-1
votes
1 answer

Command is not found when ran with sudo

I am trying to change the version of nodejs using cmd n installed globally by yarn. Neither yarn is detected by sudo nor n. Please help me to fix this: When running the n command to change node version, it shows permission is denied by many files to…
gaurav
  • 491
  • 3
  • 13
-1
votes
1 answer

Node version manager

I'm trying to install n to downgrade node it gives me: Unsupported platform for n@8.0.0: wanted {"os":"!win32"} (current: {"os":"win32","arch":"x64"}) If you know how to solve this please let me know.
Mahmoud Ali
  • 116
  • 2
  • 2
  • 10
-1
votes
1 answer

npm install fails with npm.cmd: command not found

We currently do sudo npm i instead of npm i to circumvent this issue. Our Ubuntu team members can't do this however because nvm isn't installed for root. NVM and N both have this same issue. geoyws-mbp:ifca-construction-react geoyws$ npm i >…
geoyws
  • 3,326
  • 3
  • 35
  • 47
1 2
3