在终端上运行node.js的3种方式:

 1、通过node –e 的方式

>node -e console.log("hello node.js");

2、直接进入node的模式

>node

>console.log("hello node.js");

3、通过脚本的方式运行node.js

>node G:\h-b\ceshi\node\node.js

hello node.jshello node.jshello node.js

相关文章:

  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-10
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案