-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm doesn't work with sudo #44
Comments
I’m having the same issue. Did you ever figure this out? |
Unfortunately no. |
Could you try and see if
On Ubuntu at least, the default
|
Although my system is somewhat different than it was at the time reporting this, I am still using Debian and the following might useful about this issue.
|
@skarmoutsosv your last code block confirms that indeed, your |
$ npm -v
8.19.2
$ node -v
v18.10.0
$ which npm
/snap/bin/npm
$ which node
/snap/bin/node
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin
$ npm install nodemon
up to date, audited 33 packages in 762ms
3 packages are looking for funding
run
npm fund
for detailsfound 0 vulnerabilities
$ sudo npm install -g nodemon
sudo: npm: command not found
The text was updated successfully, but these errors were encountered: