Skip to content

Commit

Permalink
Merge pull request #3550 from dfinity/update-nodejs
Browse files Browse the repository at this point in the history
Add info about required Node.js version
  • Loading branch information
jessiemongeon1 authored Sep 30, 2024
2 parents 22d3621 + d567cba commit bb366f0
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion blog/news-and-updates/2024-07-24-update.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ This week, the agent documentation saw some significant revisions, specifically

- [JavaScript agent](/docs/current/developer-docs/developer-tools/off-chain/agents/javascript-agent)

- [NodeJS](/docs/current/developer-docs/developer-tools/off-chain/agents/nodejs)
- [Node.js](/docs/current/developer-docs/developer-tools/off-chain/agents/nodejs)

- [Rust agent](/docs/current/developer-docs/developer-tools/off-chain/agents/rust-agent)

Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/ai/ai-on-chain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Download MobileNet v2-7 to `src/backend/assets/mobilenetv2-7.onnx` by running th
./download_model.sh
```

Install NodeJS dependencies for the frontend:
Install Node.js dependencies for the frontend:

```
npm install
Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/ai/machine-learning-sample.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This project is based off of one [found within the Rust Burn examples](https://g

- [x] [Download and install Rust](https://www.rust-lang.org/tools/install).

- [x] [Download and install Node.js](https://nodejs.org/en/download).
- [x] [Download and install Node.js](https://nodejs.org/en/download) `16.0.0` or newer.

- [x] [Download and install the IC SDK](/docs/current/developer-docs/getting-started/install/).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Calls made through the agent are intended to be structured through an actor and
To get started with `agent-js`, it is recommended that your development environment include:

- [x] IC SDK for canister creation and management.
- [x] Node JS (12, 14, or 16).
- [x] Node.js (12, 14, or 16).
- [x] A canister you want to experiment with.
  - Suggestions:
    - `dfx new` default project.
Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/getting-started/deploy/local.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Before you create your first canister, verify the following:

-   [x] You have an internet connection and access to a shell terminal on your local computer.

-   [x] You have `Node.js` installed if you want to include the default template files for frontend development in your project.
-   [x] You have `Node.js` `16.0.0` or newer installed if you want to include the default template files for frontend development in your project.

-   [x] You have downloaded and installed the IC SDK package as described in the [installing the IC SDK](/docs/current/developer-docs/getting-started/install/) page.

Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/getting-started/deploy/mainnet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Before you download and install this release of the IC SDK, verify the following

- [x] You have an internet connection and access to a shell terminal on your local computer.

- [x] You have `Node.js` installed if you want to access the default frontend for the default project.
- [x] You have `Node.js` `16.0.0` or newer installed if you want to access the default frontend for the default project.

- [x] You have ICP tokens or <GlossaryTooltip>cycles</GlossaryTooltip> available for you to use.

Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/getting-started/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Download and install the latest version of [dfx](install/index.mdx). `dfx` is a
sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
```

### Install [Node.js](https://nodejs.org/en/download)
### Install [Node.js](https://nodejs.org/en/download) `16.0.0` or newer

```bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ module: {
```

:::caution
Since `dfx` projects rely on Webpack to provide the default frontend configuration, you must have [Node.js](https://nodejs.org/en) installed in your development environment.
Since `dfx` projects rely on Webpack to provide the default frontend configuration, you must have [Node.js](https://nodejs.org/en) `16.0.0` or newer installed in your development environment.
:::

Additionally, you can customize the frontend further by adding images, videos, or other React components. You can learn more about customizing the frontend in the [documentation](/docs/current/developer-docs/web-apps/application-frontends/overview).
Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/identity/authentication/nfid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ NFID also supports signing in with a passkey stored on a mobile device or local

Before starting the guide, verify the following:

- [x] You have `Node.js` installed for frontend development and can install packages using `npm install` in your project. For information about installing node for your local operating system and package manager, see the [Node](https://nodejs.org/en/) website.
- [x] You have `Node.js` `16.0.0` or newer installed for frontend development and can install packages using `npm install` in your project. For information about installing node for your local operating system and package manager, see the [Node](https://nodejs.org/en/) website.

- [x] You have downloaded and installed the IC SDK package as described in the [download and install](/docs/current/developer-docs/getting-started/install/) page.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This project uses the **pullable** version of the Internet identity canister. A
Before you start, verify that you have:

- Downloaded and installed [`dfx`](https://github.com/dfinity/sdk/releases/latest) version 0.14.1 or later.
- [Node.js v16+](https://nodejs.org/en).
- [Node.js `16.0.0` or newer](https://nodejs.org/en).

### Step 1: To get started, open a terminal window and create a new project.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { GlossaryTooltip } from "/src/components/Tooltip/GlossaryTooltip";

Before you start, verify that you have:

-  [x] `Node.js` installed for frontend development and can install packages using `npm install` in your project. For information about installing Node for your local operating system and package manager, see the [Node](https://nodejs.org/en/) website.
-  [x] `Node.js` `16.0.0` or newer installed for frontend development and can install packages using `npm install` in your project. For information about installing Node for your local operating system and package manager, see the [Node](https://nodejs.org/en/) website.

- [x] Downloaded and installed [`dfx`](https://github.com/dfinity/sdk/releases/latest) version `0.17.0` or newer.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ By default, the `index.js` file imports an agent that is located in the `src/dec

Before you start, verify that you have:

- [x] Node.js installed for frontend development and can install packages using `npm install` in your project. For information about installing Node for your local operating system and package manager, see the [Node](https://nodejs.org/en/) website.
- [x] Node.js `16.0.0` or newer installed for frontend development and can install packages using `npm install` in your project. For information about installing Node for your local operating system and package manager, see the [Node](https://nodejs.org/en/) website.

- [x] Downloaded and installed [`dfx`](https://github.com/dfinity/sdk/releases/latest) version `0.17.0` or newer.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ DFX_NETWORK=ic NODE_ENV=production HELLO_CANISTER_ID=rrkah... npm run build

### Ensuring Node.js is available in a project

Because projects rely on webpack to provide the framework for the default frontend, you must have `Node.js` installed in
Because projects rely on webpack to provide the framework for the default frontend, you must have `Node.js` `16.0.0` or newer installed in
your development environment and accessible in the project directory.

- If you want to develop your project without using the default webpack configuration and canister aliases, you can remove the `frontend` canister from the `dfx.json` file or build your project using a specific canister name. For example, you can choose to build only the `hello` program's backend canister without building the frontend assets by running the following command:
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/developer-journey/level-0/03-dev-env.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Many of the DFINITY public repositories are hosted on Github, such as our `examp

### Download and install Node.js

Download and install [node.js](https://nodejs.org/en).
Download and install [Node.js](https://nodejs.org/en) `16.0.0` or newer.

#### Why does this matter?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Before you can deploy your first dapp on ICP, you will need to set up your devel

- [x] Download and install [git](https://git-scm.com/downloads).

- [x] Download and install [Node.js](https://nodejs.org/en).
- [x] Download and install [Node.js](https://nodejs.org/en) `16.0.0` or newer.

Then, to download the template project, first create a new directory, then download the project template using the commands:

Expand Down

0 comments on commit bb366f0

Please sign in to comment.