[MacPorts] #32456: npm executable not found after installing nodejs port

MacPorts noreply at macports.org
Thu Dec 8 15:56:13 PST 2011


#32456: npm executable not found after installing nodejs port
---------------------------------+------------------------------------------
  Reporter:  conradwt@…          |       Owner:  ciserlohn@…           
      Type:  defect              |      Status:  new                   
  Priority:  Normal              |   Milestone:                        
 Component:  ports               |     Version:  2.0.3                 
Resolution:                      |    Keywords:                        
      Port:  nodejs, npm         |  
---------------------------------+------------------------------------------

Comment(by conradwt@…):

 OK, after looking at main.log, npm is being completed uninstalled when one
 does the following:

 {{{
 sudo port uninstall npm
 sudo port clean --all npm
 }}}

 For example, after executing the above, I'm still left with the following:

 {{{
 lrwxr-xr-x     1 root  admin          38 Dec  8 15:38 npm ->
 ../lib/node_modules/npm/bin/npm-cli.js
 lrwxr-xr-x     1 root  admin          38 Dec  8 15:38 npm-g ->
 ../lib/node_modules/npm/bin/npm-cli.js
 lrwxr-xr-x     1 root  admin          38 Dec  7 18:15 npm-g.mp_1323310545
 -> ../lib/node_modules/npm/bin/npm-cli.js
 lrwxr-xr-x     1 root  admin          38 Dec  7 21:47 npm-g.mp_1323323255
 -> ../lib/node_modules/npm/bin/npm-cli.js
 lrwxr-xr-x     1 root  admin          38 Dec  7 18:15 npm.mp_1323310545 ->
 ../lib/node_modules/npm/bin/npm-cli.js
 lrwxr-xr-x     1 root  admin          38 Dec  7 21:47 npm.mp_1323323255 ->
 ../lib/node_modules/npm/bin/npm-cli.js
 lrwxr-xr-x     1 root  admin          38 Dec  8 15:38 npm_g ->
 ../lib/node_modules/npm/bin/npm-cli.js
 lrwxr-xr-x     1 root  admin          38 Dec  7 18:15 npm_g.mp_1323310545
 -> ../lib/node_modules/npm/bin/npm-cli.js
 lrwxr-xr-x     1 root  admin          38 Dec  7 21:47 npm_g.mp_1323323255
 -> ../lib/node_modules/npm/bin/npm-cli.js
 }}}

 Furthermore, when checking to see if npm is installed:

 {{{
 $ port installed npm
 None of the specified ports are installed.

 $ which npm
 /opt/local/bin/npm

 $ npm list
 /opt/local/lib
 ├── coffee-script at 1.1.2
 ├─┬ js2coffee at 0.1.1
 │ ├── coffee-script at 1.1.1
 │ └── underscore at 1.1.7
 └─┬ npm at 1.0.106
   ├── abbrev at 1.0.3
   ├── graceful-fs at 1.0.1
   ├── ini at 1.0.1
   ├─┬ minimatch at 0.0.4
   │ └── lru-cache at 1.0.4
   ├── node-uuid at 1.2.0
   ├── nopt at 1.0.10
   ├── proto-list at 1.0.0
   ├── request at 2.1.1
   ├── rimraf at 1.0.8
   ├── semver at 1.0.11
   ├── slide at 1.1.3
   └── which at 1.0.2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/32456#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list