Skip to content

Examples: <not work> #1448

@brakdag

Description

@brakdag

Examples:

I try with basic_proxy.js
May be, hard requariments of unnecessary dependences.

I walk in this steps.

git clone https://github.com/http-party/node-http-proxy.git npm install node ./examples/http/basic-proxy.js

its fails, y see in the file basic-proxy require('colors') and require('util'), and then i install it

npm i -s colors util

Next, btw it fails,

util.puts(welcome.rainbow.bold); ^ TypeError: util.puts is not a function at Object.<anonymous> (D:\Lamiwet\proxy\node-http-proxy\examples\http\basic-proxy.js:41:6) at Module._compile (internal/modules/cjs/loader.js:1185:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10) at Module.load (internal/modules/cjs/loader.js:1034:32) at Function.Module._load (internal/modules/cjs/loader.js:923:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47

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