Skip to content

npm not found #4063

Description

@und3fined

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    macosIssues and PRs related to the macOS platform / OSX.npmIssues and PRs related to the npm client dependency or the npm registry.questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions