-
-
Save mxriverlynn/9107152 to your computer and use it in GitHub Desktop.
node modules problems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = require("../../../lib/foo"); | |
var bar = require("../../../lib/bar"); | |
var baz = require("../../../lib/baz"); | |
var quux = require("../../../lib/quux"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports NODE_PATH=$NODE_PATH:./lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = require("foo"); | |
var bar = require("bar"); | |
var baz = require("baz"); | |
var quux = require("quux"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku config:set NODE_PATH=./lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: node www/app.js | |
events: node qhandlers/index.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "signalleaf", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"foo": "./lib/foo", | |
"bar": "./lib/bar", | |
"baz": "./something/baz", | |
"quux": "./another/quux" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In 6th case how can I write
require
?require('foo/subfoo')
?