Sitelet https://github.com/nodejs/node/issues/4063
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?

Activity

  1. added
    questionIssues asking questions about Node.js.
    npmIssues and PRs related to the npm client dependency or the npm registry.
    on Nov 29, 2015
  2. added
    macosIssues and PRs related to the macOS platform.
    on Nov 29, 2015
  3. Fishrock123 commented on Nov 30, 2015

    @Fishrock123
    Contributor

    Closing, since this is an npm / system issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    macosIssues and PRs related to the macOS platform.npmIssues and PRs related to the npm client dependency or the npm registry.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions