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

MacPorts noreply at macports.org
Thu Dec 8 17:43:47 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@…):

 Here's the transcript:

 {{{
 $ port installed npm
 The following ports are currently installed:
   npm @1.0.106_1
 [17:41] [/opt/local/bin] [ruby] [1.9.3]  $ sudo port uninstall npm
 Password:
 --->  Uninstalling npm @1.0.106_1
 --->  Cleaning npm
 [17:41] [/opt/local/bin] [ruby] [1.9.3]  $ sudo rm -rf /opt/local/bin/npm*
 /opt/local/lib/node_modules* /opt/local/share/man/man*/npm*
 Password:
 [17:42] [/opt/local/bin] [ruby] [1.9.3]  $ sudo port clean npm
 Password:
 --->  Cleaning npm
 [17:42] [/opt/local/bin] [ruby] [1.9.3]  $ sudo port install npm
 Password:
 --->  Computing dependencies for npm
 --->  Fetching archive for npm
 --->  Attempting to fetch npm-1.0.106_1.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_1
 --->  Activating npm @1.0.106_1
 Error: Target org.macports.activate returned: Image error:
 /opt/local/bin/npm already exists and does not belong to a registered
 port.  Unable to activate port npm. Use 'port -f activate npm' to force
 the activation.
 Log for npm is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_npm/npm/main.log
 Error: Status 1 encountered during processing.
 To report a bug, see <http://guide.macports.org/#project.tickets>
 }}}

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


More information about the macports-tickets mailing list