The node module simplifies Node.js development by offering integrated version management and direct access to npm and npx tools across various platforms.
When to Activate
- When installing or switching Node.js versions.
- When using
npmto manage dependencies ornpxto run remote tools. - When executing JavaScript files in the terminal.
Patterns & Examples
Install NPM Packages
# Install a Node package globally
x node npm install -g typescript
Run Tool via NPX
# Execute a tool without local installation
x node npx create-react-app my-app
Checklist
- Verify the desired Node.js version.
- Ensure npm/npx is required for the specific task.