Skip to content

Commit 24a3cf7

Browse files
committed
tutorial: Create a package.json to install the npm packages locally
1 parent 49aecd7 commit 24a3cf7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/tutorial/basic/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,13 @@ jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
335335
{% endhighlight %}
336336

337337
This will use the [`jsdom`](https://github.com/jsdom/jsdom) library to simulate a DOM in Node.js.
338-
Note that you need to install it separately using
338+
You need to install it separately.
339+
It is usually best to install it locally for this project.
340+
You can initialize a private `package.json` as follows:
341+
342+
$ npm init private
343+
344+
Then you can install jsdom:
339345

340346
$ npm install jsdom
341347

0 commit comments

Comments
 (0)