getting-started-with-javascript icon indicating copy to clipboard operation
getting-started-with-javascript copied to clipboard

如何执行node程序

Open xugy0926 opened this issue 6 years ago • 2 comments

  1. 先进入你要执行的项目。

假如你的代码在下面路径

/Users/youngxu/allin/tmp_code/getting-started-with-javascript/study/lesson3

> cd /Users/youngxu/allin/tmp_code/getting-started-with-javascript/study/lesson3
  1. 运行
> node sample_code.js

xugy0926 avatar Aug 13 '17 15:08 xugy0926

2课还是3课的时候看见您 运行

node sample_code.js 后就出现了一个html文件。。。。。好像有个命令行还有 -P 什么的。。。忘记那行命令了。。百度找不到答案,问同学也找不到答案。。

xyuh111 avatar Sep 16 '17 00:09 xyuh111

@xyuh111 运行node sample_code.js应该不会出现什么html文件。

xugy0926 avatar Oct 02 '17 15:10 xugy0926