Skip to content

Commit f9569bb

Browse files
committed
Emscripten automatically installs node.js
1 parent 43561d7 commit f9569bb

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.ci/scripts/setup-emscripten.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11

22
set -ex
33

4-
install_nodejs() {
5-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
6-
\. "$HOME/.nvm/nvm.sh"
7-
nvm install 22
8-
}
9-
104
install_emscripten() {
115
git clone https://github.com/emscripten-core/emsdk.git
126
pushd emsdk || return
@@ -16,5 +10,4 @@ install_emscripten() {
1610
popd || return
1711
}
1812

19-
install_nodejs
2013
install_emscripten

examples/wasm/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ examples/wasm
1212
## Prerequisites
1313

1414
- [emscripten](https://emscripten.org/docs/getting_started/Tutorial.html)
15-
- [Node.js](https://nodejs.org/en/) (Optional)
1615

1716
## Generate Models
1817

19-
JavaScript does not have access to the filesystem. To load a model, it needs to be preloaded or embedded into the virtual filesystem. In this example, models in the `./models/` directory are embedded by default. We will then build `executorch_runner` in Wasm.
18+
JavaScript does not have direct access to the host file system. To load a model, it needs to be preloaded or embedded into the virtual file system. In this example, models in the `./models/` directory are embedded by default. We will then build `executorch_runner` in Wasm.
2019

2120
1. Following the setup guide in [Setting up ExecuTorch](https://pytorch.org/executorch/main/getting-started-setup)
2221
you should be able to get the basic development environment for ExecuTorch working.
@@ -56,7 +55,7 @@ If you need to rebuild `executor_runner` after modifying the contents of `./mode
5655
cmake --build cmake-out-wasm -j32 --target executor_runner --clean-first
5756
```
5857

59-
4. Run the model with Node.js.
58+
4. Run the model with Node.js (automatically installed with Emscripten).
6059

6160
```bash
6261
# Run the tool on the generated model.

0 commit comments

Comments
 (0)