nodejs

A setup guide for installing Node.js, a runtime for running JavaScript outside a web browser, with NVM and pnpm. NVM manages multiple Node.js versions, while pnpm installs project packages.

In plain words
What is it for?
Use it to set up Node.js 22.14.0 or later, install NVM and pnpm, and prepare a project environment.
Why use it?
It helps developers install the required tools and switch to the right Node.js version without managing versions manually.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/giselles-ai/giselle/nodejs
Clone the repo
git clone --depth 1 https://github.com/giselles-ai/giselle

Made for: Cursor.

Per session 3 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 444 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00003 $0.00444
Opus 5 $0.00002 $0.00222
Sonnet 5 $0.00001 $0.00089
Haiku 4.5 $0.00000 $0.00044

Measured 2d ago against content hash b6543bb83838, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

nodejs scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • nodejs — 100% identical, 0 lines differ
.cursor/rules/nodejs.mdc · 86 lines

What it actually says

Setting up Node.js with NVM and pnpm

This guide will walk you through installing Node.js using NVM (Node Version Manager) and setting up pnpm as your package manager.

Installing Node Version Manager (NVM)

NVM allows you to install and manage multiple versions of Node.js on your system.

macOS and Linux

  1. Install NVM by running the following command in your terminal:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash

Or using wget:

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
  1. Close and reopen your terminal to load NVM.

  2. Verify NVM is installed correctly:

nvm --version

Installing Node.js

Giselle requires Node.js version 22.14.0 or later.

  1. Install the required Node.js version:
nvm install 22.14.0
  1. Set this version as default:
nvm use 22.14.0
  1. Verify the installation:
node --version

The output should show v22.14.0 or later.

Setting up pnpm

pnpm is a fast, disk space efficient package manager that's used by the Giselle project.

  1. Install pnpm using the recommended method:
curl -fsSL https://get.pnpm.io/install.sh | sh -
  1. Close and reopen your terminal to load pnpm.

  2. Verify pnpm is installed correctly:

pnpm --version

Troubleshooting

If you encounter any issues:

  • Make sure your terminal is restarted after installing NVM
  • Check that you're using the correct Node.js version with node --version
  • Ensure pnpm is installed globally with pnpm --version
  • If commands aren't recognized, verify your PATH environment variables
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 86 lines · 3 tokens per session scan C b6543bb83838

Subscribe to this mod's changes

nodejs is a cursor rule published in the GitHub repository giselles-ai/giselle (553 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 3 tokens to every session and 444 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.