getting-started-with-javascript
getting-started-with-javascript copied to clipboard
如何执行node程序
- 先进入你要执行的项目。
假如你的代码在下面路径
/Users/youngxu/allin/tmp_code/getting-started-with-javascript/study/lesson3
> cd /Users/youngxu/allin/tmp_code/getting-started-with-javascript/study/lesson3
- 运行
> node sample_code.js
2课还是3课的时候看见您 运行
node sample_code.js 后就出现了一个html文件。。。。。好像有个命令行还有 -P 什么的。。。忘记那行命令了。。百度找不到答案,问同学也找不到答案。。
@xyuh111 运行node sample_code.js
应该不会出现什么html文件。