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: tutorial/1-node-npm-yarn-package-json/README.md
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,13 @@ You want any version of Node > 6.5.0.
29
29
30
30
Running `node .` to execute our program is a bit too low-level. We are going to use an NPM/Yarn script to trigger the execution of that code instead. That will give us a nice abstraction to be able to always use `yarn start`, even when our program gets more complicated.
31
31
32
-
- In `package.json`, add `"start": "node ."` in the `scripts` object.
32
+
- In `package.json`, add a `scripts` object to the root object like so:
33
+
34
+
```
35
+
"scripts": {
36
+
"start": "node ."
37
+
}
38
+
```
33
39
34
40
`package.json` must be a valid JSON file, which means that you cannot have trailing commas. So be careful when editing manually your `package.json` file.
0 commit comments