Skip to content

Installing external modules #8

Description

@arqam

I am trying to install the http-proxy module from nodejitsu: https://github.com/nodejitsu/node-http-proxy but I get this error:

I am including by writing this in invoking_file.js:

var http = require('external/node_modules/http-proxy');

but I get this error:

Uncaught Error: Cannot find module 'external/node_modules/http-proxy' on node.js 44

This is my directory structure:

  • invoking_file.js
    • external
      • node.js
      • node_modules
        • http-proxy.js
        • http-proxy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions