For an explanation, see global vs installed packages. Note: Throughout this setup we'll be using -g to install packages. Nvm alias default stable # Set as version to load by default in the future Alternative Installation Paths:ĭownload from Verify npm Install Nvm install stable # Install latest stable version NVM supports nearly every version of node.js and enables both quick transitions between versions and switching on a session basis. Even minors ( 0.12.*) - stable (backwards compatible) branch development.Odd minors ( 0.9.*) - unstable (often breaking) branch development.Because of this, for production development, the current LTS release is recommended.Ġ.*.* releases followed an even/odd versioning scheme: This allows npm package authors time to update. New even-numbered major releases enjoy a 6 month lead-time before being marked LTS. Semver versioning uses a 3 number hierarchy, (e.g., 2.1.4): Alternatively, the latest "Current" release contains the latest features and V8 (more information here). Typically you'll use the latest node.js LTS release (even numbered version) due to increased stability. Officially, it's pronounced "node dot js", but you may get some strange glances when saying that in real life. See the node.js API and npm documentation. This document is a quick guide to preparing for node.js Development.
0 Comments
Leave a Reply. |