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
1
vote
1 answer

Sublime text cannot find Node.js. How do I help Sublime find Node properly?

The story: I had installed n about a month back while playing around with creating an Eslint config on my Mac, which was when Sublime Text started giving me problems, specifically with Eslint via Sublime linter. I had a bit of a break so I didn't…
tisAliG
  • 11
  • 1
1
vote
3 answers

Getting the latest node and npm

I did sudo apt install nodejs and then checked my versions and I'm on version 8, which is a bit old. I did sudo npm install -g n and then n latest and it says it has version 11 active, but then node --version spits out 8 again. What gives?
Costa Michailidis
  • 7,691
  • 15
  • 72
  • 124
1
vote
1 answer

How to update npm permanently?

I'm trying to update npm from 2.15.11 to 3.9.2 and I manage to do it, but it's not permanent; if I switch Node version, npm goes back to 2.15.11 and if I come back to the Node version in which I updated npm, npm is also back to 2.15.11 $ node…
Félix Paradis
  • 5,165
  • 6
  • 40
  • 49
1
vote
1 answer

upgrade nodejs to stable version

I am trying to update nodejs version using npm. Install nodejs: sudo yum install nodejs npm --enablerepo=epel Check Version [root@*********** ec2-user]# node -v v0.10.46 [root@*********** ec2-user]# npm -v 1.3.6 Install n and Update…
nad87563
  • 3,672
  • 7
  • 32
  • 54
1
vote
1 answer

How should I install and use multiple versions of Node on the same production machine?

I know about n,nave and npm but I think that those are intended for development/testing. Our requirement is that we be able to have more than one version of Node running on a production machine. For instance, I might want an Express app running on…
jcollum
  • 43,623
  • 55
  • 191
  • 321
0
votes
1 answer

n-install: ERROR: GNU Make not found, which is required for operation

Try to install n using third-party-installers on WSL (ubuntu 22.04.2 LTS). Got the below error: lindu@LAPTOP-C8AFGSGK:~$ sudo curl -L https://raw.githubusercontent.com/mklement0/n-install/stable/bin/n-install | bash % Total % Received % Xferd …
Lin Du
  • 88,126
  • 95
  • 281
  • 483
0
votes
1 answer

Why is upgrading node version with n not working on mac?

First I followed this, and I managed to get the newest version installed. However, I didn't get to switch to it installed : v19.7.0 to /usr/local/bin/node active : v10.24.1 at /Users/xxx/.nvm/versions/node/v10.24.1/bin/node So I tried to…
MBS
  • 1
  • 2
0
votes
0 answers

Can't use npn on diferent version of nodejs

I want to use different versions of node in order to different versions of Angular. I installed n so I can switch my nodejs version, but when switching to an older version of node, npm gives the following error: Segmentation fault (core…
0
votes
4 answers

How to downgrade Node version with n

I installed the latest node version 18.9.0 with brew. The I installed n with npm n. I can't switch the active version from 18.9.0 to 17.4.0 using n. I am not keen on using nvm, is there a way to do it with n? I installed the latest version (18.9.0)…
OctaviaLo
  • 1,268
  • 2
  • 21
  • 46
0
votes
1 answer

how switch to previous version in n (Node version manager)?

Basically, I installed n(tj/n)for managing my node versions, and after that I installed a node version 14.6, it automatically switched my node version to 14.6 and also try to switch my version using n command but that shows only the one that I…
Arunava Basu
  • 35
  • 1
  • 6
0
votes
0 answers

can't downgrade node to older version

PROBLEM I need to downgrade my node.js version, to avoid Problems with Vue CLI. https://stackoverflow.com/a/60277789 I tried doing the steps in this answer sudo npm install -g n After running this command i get a weird error: sudo: npm: command…
akurz
  • 1
0
votes
0 answers

How does a proper node installation with N look like on linux

I may have messed something up with my installation, I don't know. I reinstalled node with N package manager (script? package?) some time ago to solve sudo problems for my global packages, and today I encountered a problem -- I couldn't require…
Tooster
  • 322
  • 3
  • 14
0
votes
3 answers

I cannnot update node with n

I'm trying: sudo n stable and get: installed: v14.17.6 (with npm 6.14.15) but the version is still old: node -v v11.14.0
0
votes
2 answers

Automatically use the right version of Node for a package

I know it is possible to switch between different versions of Node using NVM, n, or similar. Is there a convenient way for the right version of Node to automatically be used when running commands within a given package? ("Right version" being…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
0
votes
2 answers

internal/modules/cjs/loader.js:905 -> throw err;

Node.js Version: v14.17.3 OS: Fedora 34 (Workstation Edition) x86_64 Scope (install, code, runtime, meta, other?): node init Just tried to initialize node at local directory ❯ node init internal/modules/cjs/loader.js:905 throw err; ^ Error:…
Searge
  • 465
  • 1
  • 9
  • 14