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

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

 The presence of files with extensions like .mp_1323310545 indicate that
 MacPorts at one point told you that a port could not be activated because
 a file it wanted to install already existed, and you overrode that message
 by using the `-f` (force) flag, which was probably not the right thing to
 do.

 Please ensure again that npm is not installed by looking at
 {{{
 port installed npm
 }}}
 If it is installed,
 {{{
 sudo port uninstall npm
 }}}
 Then manually delete any remaining npm-related items:
 {{{
 sudo port rm -rf /opt/local/bin/npm* /opt/local/lib/node_modules*
 /opt/local/share/man/man*/npm*
 }}}
 Then clean and install the npm port again.
 {{{
 sudo port clean npm
 sudo port install npm
 }}}
 Does `npm` now work?

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


More information about the macports-tickets mailing list