You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/node.html
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,8 @@ <h2>
54
54
55
55
<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>
56
56
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
+
57
59
<p>That is it!</p>
58
60
59
61
<p>If you want to try a sample app that works with r.js, try <ahref="https://github.com/jrburke/r.js/blob/master/tests/node/index.js">the index.js Hello World app</a>.</p>
0 commit comments