Below commands are mostly for Linux/MacOS users.
For Mac M1: You may encouter error
Target architecture arm64 is only supported on arm64 and x64 host when installing NodeJS version <= 14 with nvm. Just open Terminal using Rosetta (right click on Terminal.app > Get info > tick "Open using Rosetta") and then run the installation command again. 💡 Tip: You can create a separated Terminal Rosetta.app just in case you wanna install something using Rosetta.i:install
D:-save-dev(devDependencies)
P:-save-prod(default),-save
g:-global
f:-force
ls:list
- The node package version follows the structure
major.minor.patch.
~→ only update thepatchto the latest, freezingmajor.minor.
^→ only freezingmajor, update bothminor.patchto the latest versions.
- The node package version follows the structure
major.minor.patch.
~→ only update thepatchto the latest, freezingmajor.minor.
^→ only freezingmajor, update bothminor.patchto the latest versions.
Sometimes, we wanna log the results for debugging, but it appears
[Object] (for example) all time.✳️ [Error: EACCES: permission denied, open '/Users/thi/.ngrok/...