Skip to content

Commit b4d9204

Browse files
committed
Update node document to mention issue with node_modules and location of r.js.
1 parent 48b6b29 commit b4d9204

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/node.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ <h2>
5454

5555
<p>This assumes you are in the directory that contains myNodeApp.js, your top-level Node application file. It also assumes myNodeApp.js uses the RequireJS API to load modules, and not Node's require('') syntax.</p>
5656

57+
<p><strong>Note:</strong> if you will be using npm-installed modules, it is best to place r.js as a sibling to myNodeApp.js, since Node will use the directory of r.js as the place to look up node_modules.</p>
58+
5759
<p>That is it!</p>
5860

5961
<p>If you want to try a sample app that works with r.js, try <a href="https://github.com/jrburke/r.js/blob/master/tests/node/index.js">the index.js Hello World app</a>.</p>

0 commit comments

Comments
 (0)