Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Fix -e/--eval can't load module from node_modules #1196

Closed
wants to merge 1 commit into from
Closed

Fix -e/--eval can't load module from node_modules #1196

wants to merge 1 commit into from

Commits on Jun 17, 2011

  1. Fix -e/--eval can't load module from node_modules

    With -e or --eval, require() can load module using relative path.
    
        node -e 'require("./foo")'
    
    But it can't load module from node_modules directory.
    
        node -e 'require("foo")'
    koichik committed Jun 17, 2011
    Configuration menu
    Copy the full SHA
    72c01d6 View commit details
    Browse the repository at this point in the history