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

MacPorts noreply at macports.org
Thu Dec 8 20:08:58 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:  haspatch              
      Port:  nodejs, npm         |  
---------------------------------+------------------------------------------

Comment(by conradwt@…):

 Ryan, that appears to have resolved the issue that I was having locally on
 my system:

 {{{
 $ sudo port uninstall npm
 Password:
 --->  Uninstalling npm @1.0.106_1
 --->  Cleaning npm
 [19:58] [~] [ruby] [1.9.3]  $ sudo port clean npm
 Password:
 --->  Cleaning npm
 [19:58] [~] [ruby] [1.9.3]  $ sudo rm -rf /opt/local/bin/npm*
 /opt/local/lib/node_modules* /opt/local/share/man/man*/npm*
 Password:
 Sorry, try again.
 Password:
 [19:58] [~] [ruby] [1.9.3]  $ cd $(port dir npm)
 [20:03]
 [/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/npm]
 [ruby] [1.9.3]  $ sudo patch -p0 < ~/Desktop/npm.destroot.diff
 Password:
 patching file Portfile
 [20:04]
 [/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/npm]
 [ruby] [1.9.3]  $ sudo port install npm
 Password:
 --->  Computing dependencies for npm
 --->  Fetching archive for npm
 --->  Attempting to fetch npm-1.0.106_2.darwin_11.noarch.tbz2 from
 http://packages.macports.org/npm
 --->  Fetching npm
 --->  Verifying checksum(s) for npm
 --->  Extracting npm
 --->  Applying patches to npm
 --->  Configuring npm
 --->  Building npm
 --->  Staging npm into destroot
 --->  Installing npm @1.0.106_2
 --->  Activating npm @1.0.106_2

 It is not recommended to install packages globally. But if you do so
 please be aware that they won't get cleaned up when you deactivate or
 uninstall npm. Globally installed packages will remain in
 /opt/local/lib/node_modules/ until you
 manually delete them.

 --->  Cleaning npm
 [20:05]
 [/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/npm]
 [ruby] [1.9.3]  $ which npm
 /opt/local/bin/npm
 [20:05]
 [/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/npm]
 [ruby] [1.9.3]  $ npm list
 /opt/local/lib
 └─┬ 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:13>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list