tsc --init
创建 tsconfig.json 文件 可以设置 target 等
npm init -y
创建 package.json 文件 可以写 scripts 命令
launch.json 是vscode创建的
npm i -D @types/node
如果用esbuild编译 需要这样
esbuild main.ts --bundle --platform=node
也可以后面加node的版本 --target=node10.4
在node里
process.versions
process.env
是电脑的环境变量
了解 CommonJS 和 ESM 的 区别
https://zhuanlan.zhihu.com/p/458207931
了解 es5 es6 ES2015 ES2016 等等的区别
https://zhuanlan.zhihu.com/p/273662162
node.js的基础知识
https://blog.csdn.net/qq_43779149/article/details/124934195
powershell和cmd对比
https://blog.csdn.net/u013190417/article/details/126157308
es标准官网
https://tc39.es/
解析ts语法
https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API
了解node.js文档里的这几个
Modules: CommonJS modules
Modules: ECMAScript modules
Modules: node:module API
Modules: Packages
https://nodejs.org/dist/latest-v18.x/docs/api/documentation.html
ECMAScript modules是未来趋势
node.js 18 新特性
https://zhuanlan.zhihu.com/p/502951532
node.js 17 新特性
https://my.oschina.net/devpoint/blog/5294351
node.js 16 新特性
https://toutiao.io/posts/8c5ep42/preview
node.js 12-15 特性
https://blog.csdn.net/xiaoxiezZ/article/details/109711244
和群里的大佬们聊了下
大多node.js 需要掌握vue react
也就是前后端一起开发