agentleFS
giselles-aigiselles-ai/giselle/.cursor/rules/nodejs.mdc

giselle / rules

Cursor rule561 starsChanged 12 months agoApache-2.0View on GitHub

Setup Node.js

  • Pipes a download into a shell

The file

We split this nodejs.mdc into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify NVM is installed correctly:

    line 31
  2. Distinctive:

    Verify pnpm is installed correctly:

    line 72
  3. Distinctive:

    If you encounter any issues:

    line 80
  4. Distinctive:

    Make sure your terminal is restarted after installing NVM

    line 82
  5. Very specific:

    Check that you're using the correct Node.js version with node --version

    line 83
  6. Very specific:

    Ensure pnpm is installed globally with pnpm --version

    line 84
  7. Distinctive:

    If commands aren't recognized, verify your PATH environment variables

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
nodejs.mdc
---
description: Setup Node.js
globs: 
alwaysApply: false
---

# 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:

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

Or using wget:

```bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
```

2. Close and reopen your terminal to load NVM.

3. Verify NVM is installed correctly:

```bash
nvm --version
```
## Installing Node.js

Giselle requires Node.js version 22.14.0 or later.

1. Install the required Node.js version:

```bash
nvm install 22.14.0
```

2. Set this version as default:

```bash
nvm use 22.14.0
```

3. Verify the installation:

```bash
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:

```bash
curl -fsSL https://get.pnpm.io/install.sh | sh -
```

2. Close and reopen your terminal to load pnpm.

3. Verify pnpm is installed correctly:

```bash
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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.