nodejs

A setup guide for installing Node.js with NVM and configuring pnpm. Node.js runs JavaScript programs outside a web browser, while pnpm installs their packages.

In plain words
What is it for?
Installing and switching Node.js versions, installing pnpm, and preparing a Giselle development environment.
Why use it?
It explains how to use the required Node.js version and package manager for the Giselle project.

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/toyamarinyon/giselle/nodejs
Clone the repo
git clone --depth 1 https://github.com/toyamarinyon/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 100% copy Near-identical to another mod 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 yesterday 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 yesterday.

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

This is a copy

100% identical to nodejs — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.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. yesterday 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 toyamarinyon/giselle (4 stars, last pushed 4mo 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). It is 100% identical to nodejs, differing in 0 lines, and is treated as a copy.