摘要:
Add to global commands Add #! /usr/bin/env node to index.js chmod +x index.js Run ./index.js to test. ln -s <full_path_to_index.js_file>/index.js /usr 阅读全文
posted @ 2022-08-05 21:01
Zhentiw
阅读(31)
评论(0)
推荐(0)
摘要:
Our CLI can be run from anywhere on the system but we have a critical error. The script is trying to find a data.json file that is relative to where i 阅读全文
posted @ 2022-08-05 20:57
Zhentiw
阅读(85)
评论(0)
推荐(0)
摘要:
There are a handful of ways you can read and write to the File System in Node.js. We will look at readFileSync, readFile, and a promise based version 阅读全文
posted @ 2022-08-05 20:25
Zhentiw
阅读(30)
评论(0)
推荐(0)
摘要:
Node.js projects have two ways that you can import and export code into different files. This is through CommonJS (CJS) and ECMAScript modules (ESM). 阅读全文
posted @ 2022-08-05 19:50
Zhentiw
阅读(27)
评论(0)
推荐(0)

浙公网安备 33010602011771号