-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed
Labels
macosIssues and PRs related to the macOS platform / OSX.Issues and PRs related to the macOS platform / OSX.npmIssues and PRs related to the npm client dependency or the npm registry.Issues and PRs related to the npm client dependency or the npm registry.questionIssues that look for answers.Issues that look for answers.
Description
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
Labels
macosIssues and PRs related to the macOS platform / OSX.Issues and PRs related to the macOS platform / OSX.npmIssues and PRs related to the npm client dependency or the npm registry.Issues and PRs related to the npm client dependency or the npm registry.questionIssues that look for answers.Issues that look for answers.