Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Update arguments.js#1

Open
hemersonvarela wants to merge 1 commit intokuhnza:masterfrom
hemersonvarela:patch-1
Open

Update arguments.js#1
hemersonvarela wants to merge 1 commit intokuhnza:masterfrom
hemersonvarela:patch-1

Conversation

@hemersonvarela
Copy link

I have tried to run this example, but I got the following error message:

{
"message": "Command failed: \nmodule.js:340\n throw err;\n ^\nError: Cannot find module '../lib/index'\n at Function.Module._resolveFilename (module.js:338:15)\n at Function.Module._load (module.js:280:25)\n at Module.require (module.js:362:17)\n at require (module.js:378:17)\n at Object. (/home/node/tmp/2ebf54f9-e74a-40c8-8a22-f31aca2c9e70:9:15)\n at Module._compile (module.js:449:26)\n at Object.Module._extensions..js (module.js:467:10)\n at Module.load (module.js:356:32)\n at Function.Module._load (module.js:312:12)\n at Module.runMain (module.js:492:10)\n"
}

After changing required module by 'tubesio'. It works well.

I have tried to run this example, but I got the following error message:

{
    "message": "Command failed: \nmodule.js:340\n    throw err;\n          ^\nError: Cannot find module '../lib/index'\n    at Function.Module._resolveFilename (module.js:338:15)\n    at Function.Module._load (module.js:280:25)\n    at Module.require (module.js:362:17)\n    at require (module.js:378:17)\n    at Object. (/home/node/tmp/2ebf54f9-e74a-40c8-8a22-f31aca2c9e70:9:15)\n    at Module._compile (module.js:449:26)\n    at Object.Module._extensions..js (module.js:467:10)\n    at Module.load (module.js:356:32)\n    at Function.Module._load (module.js:312:12)\n    at Module.runMain (module.js:492:10)\n"
}

After changing required module by 'tubesio'. It works well.
@kuhnza
Copy link
Owner

kuhnza commented May 10, 2013

Thanks Hemerson. The relative path is actually by design so that the examples can be run straight from the examples folder. Rather than change the require statement I'd suggest we simply add a comment that makes it clear that you need to change that in your own deployed code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments