Skip to content
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 not found #4063

Closed
und3fined opened this issue Nov 29, 2015 · 3 comments
Closed

npm not found #4063

und3fined opened this issue Nov 29, 2015 · 3 comments
Labels
macos Issues and PRs related to the macOS platform / OSX. npm Issues and PRs related to the npm client dependency or the npm registry. question Issues that look for answers.

Comments

@und3fined
Copy link

I instal nodejs mac with pkg file.
I use mac 10.10.5

Angels-iMac-3:~ ty$ node -v
v5.1.0
Angels-iMac-3:~ ty$ npm -v
-bash: npm: command not found
Angels-iMac-3:~ ty$ cd /usr/local/bin/
Angels-iMac-3:bin ty$ ls
node    npm wstorm
Angels-iMac-3:bin ty$ ls -lah
total 44944
drwxr-xr-x  5 root  wheel   170B Nov 29 17:16 .
drwxr-xr-x  7 root  wheel   238B Nov 29 17:10 ..
-rwxrwxr-x  1 root  wheel    22M Nov 18 03:49 node
lrwxr-xr-x  1 502   staff    38B Nov 29 17:06 npm -> ../lib/node_modules/npm/bin/npm-cli.js
-rwxr-xr-x  1 root  wheel   2.8K Nov 29 16:40 wstorm
Angels-iMac-3:bin ty$ ./npm -v
-bash: ./npm: Permission denied
Angels-iMac-3:bin ty$ sudo ./npm -v
3.3.12
Angels-iMac-3:bin ty$

How to fix it?

@imvetri
Copy link

imvetri commented Nov 29, 2015

Could you share which version of Node you installed ?

Also you can have a look at this issue npm/npm#3125

the issue seems to be similar.

@ghost
Copy link

ghost commented Nov 29, 2015

@kuti To launch npm without sudo, follow instructions described here: Fixing NPM permissions.

@Fishrock123 Fishrock123 added question Issues that look for answers. npm Issues and PRs related to the npm client dependency or the npm registry. labels Nov 29, 2015
@mscdex mscdex added the macos Issues and PRs related to the macOS platform / OSX. label Nov 29, 2015
@Fishrock123
Copy link
Contributor

Closing, since this is an npm / system issue.

This was referenced Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macos Issues and PRs related to the macOS platform / OSX. npm Issues and PRs related to the npm client dependency or the npm registry. question Issues that look for answers.
Projects
None yet
Development

No branches or pull requests

4 participants