File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
sites/browserpod/src/content/docs/12-tutorials Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments