Skip to content

Commit ac4c35b

Browse files
committed
browserpod: tutorial: use "node" and "npm" in run commands
1 parent b614819 commit ac4c35b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sites/browserpod/src/content/docs/12-tutorials/00-expressjs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ get them from other sources, or embed them directly as strings.
143143

144144
```js
145145
// Install dependencies
146-
await pod.run("/npm/bin/npm.js", ["install"], {
146+
await pod.run("npm", ["install"], {
147147
terminal,
148148
cwd: "/project",
149149
echo: true,
@@ -161,7 +161,7 @@ file directly alongside the project files instead.
161161

162162
```js
163163
// Run the server
164-
await pod.run("/project/main.js", [], {
164+
await pod.run("node"["main.js"], {
165165
terminal,
166166
cwd: "/project",
167167
echo: true,
@@ -220,14 +220,14 @@ and the `hello world` will show up in the iframe.
220220
await copy_file(pod, "project/package.json");
221221
222222
// Install dependencies
223-
await pod.run("/npm/bin/npm.js", ["install"], {
223+
await pod.run("npm", ["install"], {
224224
terminal,
225225
cwd: "/project",
226226
echo: true,
227227
});
228228
229229
// Run the server
230-
await pod.run("/project/main.js", [], {
230+
await pod.run("node", ["main.js"], {
231231
terminal,
232232
cwd: "/project",
233233
echo: true,

0 commit comments

Comments
 (0)