

使用 Node.js 與 Express 開一個專案
能夠在伺服器上面運行 JavaScript 的應用平台環境 NVM(Node Version Manager) 處理專案時需要不同的 Node 版本來執行(因有些 npm 模組有版本相容性問題) 下載1curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash 開始一個專案 npm init 在 package.json 的 scripts 中新增”start”指令 "start": "node index.js" npm run start fs(File System)模組 取得 fs 1const fs = require('fs&#x..
更多