Skip to content

Commit fe3e7ec

Browse files
authored
docs: Add note about checking for existing type key (#1381)
Note: There are multiple ways we could go about updating the text, but this seemed the least invasive for now. Closes #1380
1 parent 0870384 commit fe3e7ec

File tree

1 file changed

+2
-0
lines changed
  • sources/academy/webscraping/scraping_basics_javascript/data_extraction

1 file changed

+2
-0
lines changed

sources/academy/webscraping/scraping_basics_javascript/data_extraction/project_setup.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Node.js and npm support two types of projects, let's call them legacy and modern
3737

3838
![Update package.json with VSCode](./images/vscode-type-module.png)
3939

40+
> More recent versions of npm might already have `"type": "commonjs",` pre-defined; if so, simply replace `commonjs` with `module`.
41+
4042
> If you want to learn more about JSON and its syntax, we recommend [this tutorial on MDN](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON).
4143
4244
## Installing necessary libraries {#install-libraries}

0 commit comments

Comments
 (0)