NVM on a 2nd linux user: "nvm is already installed .

This page summarizes the projects mentioned and recommended in the original post on /r/node

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • nvm

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

  • (Solved, it wasn't a nvm issue, look comments) Hello, I‏‏‎‏‏‎‏‏‎‏‏‎­just installed nvm on a linux machine. I have two users that should be able to run node scripts. The readme says "nvm is a version manager for node.js, designed to be installed per-user ..." so I thought cool, I just install it for both these users. First installation went without problems. Now on the 2nd user, I tried to run the install script with curl but I get: nvm is already installed in /home/firstuser/.nvm When I try to run nvm on the 2nd user, I get nvm: command not found Now I copy/pasted the three nvm lines from firstuser/.bashrc to seconduser/.bashrc and made the paths point to the firstuser. This feels very wrong but it's working: export NVM_DIR="/home/firstuser/.nvm" ... Shouldn't I be able to simply install nvm on the second user? What would be the right way to do that? Am I misunderstanding how nvm can/should be used with more than one user? Thanks for reading.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts