Skip to content

Commit 43153e7

Browse files
authored
Merge pull request #546 from rparree/getting-started-fix
tutorial: Create a `package.json` in an earlier step
2 parents ecd7c34 + 486717e commit 43153e7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/tutorial/basic/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ Congratulations! You have successfully compiled and run your first Scala.js appl
8181
The code is actually run by a JavaScript interpreter, namely Node.
8282

8383
**Source maps in Node.js**: To get your stack traces resolved on Node.js, you will have to install the `source-map-support` package.
84+
It is usually best to install it locally for this project.
85+
You can initialize a private `package.json` as follows:
86+
87+
$ npm init private
88+
89+
Then you can install `source-map-support`:
8490

8591
$ npm install source-map-support
8692

@@ -335,13 +341,7 @@ jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
335341
{% endhighlight %}
336342

337343
This will use the [`jsdom`](https://github.com/jsdom/jsdom) library to simulate a DOM in Node.js.
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:
344+
Note that you need to install it separately using
345345

346346
$ npm install jsdom
347347

0 commit comments

Comments
 (0)