更新apt-get:
apt-get update
安装vim:
apt-get install vim
创建文件:
touch a.js
编辑文件:
vim a.js
点击i进入插入模式
输入:
console.log('hello, world')
按esc退出编辑模式
:w 保存
:q 退出编辑模式
运行js文件:
node a.js