[MacPorts] #32494: npm not working with node 0.6.5

MacPorts noreply at macports.org
Sat Dec 10 11:43:05 PST 2011


#32494: npm not working with node 0.6.5
--------------------------------------+-------------------------------------
 Reporter:  digitalrinaldo@…          |       Owner:  ciserlohn@…           
     Type:  defect                    |      Status:  new                   
 Priority:  Normal                    |   Milestone:                        
Component:  ports                     |     Version:  2.0.3                 
 Keywords:                            |        Port:  npm                   
--------------------------------------+-------------------------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)
  * owner:  macports-tickets@… => ciserlohn@…
  * port:  => npm


Old description:

> m1:portal rinaldo$ port list | grep npm
> npm                            @1.0.106        devel/npm
> m1:portal rinaldo$ port list | grep node
> nodejs                         @0.6.5          devel/nodejs
> nodejs-devel                   @0.5.10         devel/nodejs-devel
>

>
> m1:portal rinaldo$ npm list
>
> node.js:201
>         throw e; // process.nextTick error, or 'error' event on first
> tick
>               ^
> Error: No such module
>     at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils
> /config-defs.js:5:21)
>     at Module._compile (module.js:432:26)
>     at Object..js (module.js:450:10)
>     at Module.load (module.js:351:31)
>     at Function._load (module.js:310:12)
>     at Module.require (module.js:357:17)
>     at require (module.js:368:17)
>     at Object.<anonymous>
> (/usr/local/lib/node_modules/npm/lib/utils/ini.js:40:18)
>     at Module._compile (module.js:432:26)
>     at Object..js (module.js:450:10)

New description:

 {{{
 m1:portal rinaldo$ port list | grep npm
 npm                            @1.0.106        devel/npm
 m1:portal rinaldo$ port list | grep node
 nodejs                         @0.6.5          devel/nodejs
 nodejs-devel                   @0.5.10         devel/nodejs-devel



 m1:portal rinaldo$ npm list

 node.js:201
         throw e; // process.nextTick error, or 'error' event on first tick
               ^
 Error: No such module
     at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils
 /config-defs.js:5:21)
     at Module._compile (module.js:432:26)
     at Object..js (module.js:450:10)
     at Module.load (module.js:351:31)
     at Function._load (module.js:310:12)
     at Module.require (module.js:357:17)
     at require (module.js:368:17)
     at Object.<anonymous>
 (/usr/local/lib/node_modules/npm/lib/utils/ini.js:40:18)
     at Module._compile (module.js:432:26)
     at Object..js (module.js:450:10)
 }}}

--

Comment:

 Please remember to use WikiFormatting, fill in the Port field, and Cc the
 maintainer of that port.

 Also note that [wiki:FAQ#portlist "port list" does not do what you think
 it does]. It shows you what ports are available, not what ports you have.

 Please remove /usr/local/lib/node_modules and anything else in /usr/local;
 it's interfering with MacPorts.

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


More information about the macports-tickets mailing list