Changes between Initial Version and Version 5 of Ticket #37013


Ignore:
Timestamp:
Nov 20, 2012, 4:05:49 AM (11 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

This sounds like not a MacPorts problem but a question of how nodejs and npm work. If you want to require() something in your project, then you're supposed to npm install the module locally, not globally, or else use npm link. Ask in a nodejs support venue if you have further questions.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37013

    • Property Status changed from new to closed
    • Property Cc ryandesign@… added
    • Property Owner changed from macports-tickets@… to ciserlohn@…
    • Property Keywords npm node nodejs node.js require module removed
    • Property Resolution changed from to invalid
    • Property Port npm added
  • Ticket #37013 – Description

    initial v5  
    11If I use require('some_module_installed_global') in my node.js projects, then:
     2{{{
    23Error: Cannot find module 'some_module_installed_global'
     4}}}
    35
    46Which modules install in /opt/local/lib/node_modules/, but $NODE_PATH not properly sets.