Tag: nodejs
All the articles with the tag "nodejs".
[Heroku] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Published: at 12:45 PM (1 min read)When deploying Node.js applications to Heroku, I encountered the following error: 'FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory' on Heroku deployments
[N8N] Fixing Express 'trust proxy' and X-Forwarded-For Error (express-rate-limit)
Published: at 04:12 AM (1 min read)How to resolve the express-rate-limit X-Forwarded-For header error in Express apps behind Docker, Nginx, or other proxies.
[MacOS] Fix the ModuleNotFoundError: No module named 'distutils'.
Published: at 07:01 AM (1 min read)How to resolve the distutils module error when installing Node.js packages with native dependencies on macOS
/node_modules/node-sass: Command failed.
Published: at 02:12 AM (1 min read)Recently, while upgrading Node.js from version 14.17.3 to 20.9.0, I encountered a bunch of errors after running yarn install.
[zsh] 切換目錄時自動根據 .nvmrc 切換 nodejs 版本
Published: at 03:01 PM (2 min read)最近在整理電腦環境時,順便看了一下之前切換的 nodejs 版本的方式
[nodejs] nvm is not compatible with the npm config "prefix" option: currently set to ....
Published: at 01:36 PM (1 min read)nvm is not compatible with the npm config 'prefix' option...
[Nodejs] module.exports 與 exports 的差別
Published: at 09:02 AM (2 min read)如果沒有接觸過 commonJs 這類可以將 js 模組化為檔案的開發者,剛開始寫 Nodejs 時可能會有點不懂 module.exports 與 exports 的差別
[Nodejs] Weighted Random,帶有權重的隨機函式
Published: at 06:27 AM (1 min read)Weighted Random,帶有權重的隨機函式
[nodejs] 同步執行迴圈(synchronous loop)實作
Published: at 04:12 AM (2 min read)在使用 nodejs 時,大家都知道很多函式都是使用 callback 的方式來撰寫,但有時候我們可能希望同步的執行程式碼。
[nodejs] express get 及 post 的使用
Published: at 08:38 AM (1 min read)在 express 中我們最頻繁串接傳送資料的 API 方法就是 get 與 post