Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tutorial: Create a package.json to install the npm packages locally
  • Loading branch information
rparree committed Apr 29, 2021
commit 24a3cf72815e932945142db7ddce5b3d91879a4c
8 changes: 7 additions & 1 deletion doc/tutorial/basic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,13 @@ jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
{% endhighlight %}

This will use the [`jsdom`](https://github.com/jsdom/jsdom) library to simulate a DOM in Node.js.
Note that you need to install it separately using
You need to install it separately.
It is usually best to install it locally for this project.
You can initialize a private `package.json` as follows:

$ npm init private

Then you can install jsdom:

$ npm install jsdom

Expand Down