Skip to content

pnpm link in package dir:  ERR_PNPM_LINK_BAD_PARAMS  You must provide a parameter #4296

@Ploppz

Description

@Ploppz

pnpm version: 6.29.1

Code to reproduce the issue:

Run pnpm link in library directory.
My package.json in the directory of the library:

{
  "name": "@my/library",
  "version": "1.1.3",
  "description": "",
  "main": "lib/index.js",
  "keywords": [],
  "author": "",
  "license": "ISC",

  "devDependencies": {
    "@babel/cli": "^7.16.8",
    "@babel/core": "^7.16.12",
    "@babel/preset-env": "^7.16.11",
    "@babel/preset-react": "^7.16.7"
  },
  "peerDependencies": {
    "react": "*"
  },
  "scripts": {
    "watch": "babel --watch src --out-dir lib --copy-files",
    "build": "babel src --out-dir lib --copy-files",
    "prepare": "yarn run build",
    "test": "echo \"Error: no test specified\" && exit 1",
    "link": "yarn link react"
  }
}

Expected behavior:

I interpret from this

Usage: pnpm link (in package dir)
       pnpm link <pkg>
       pnpm link <dir>

that running pnpm link in the directory of my library where package.json is located, should create a symbolic link from some system (?) node_modules directory to my library.

Actual behavior:

$ pnpm link
 ERR_PNPM_LINK_BAD_PARAMS  You must provide a parameter

Additional information:

  • node -v prints: v17.3.0
  • Windows, macOS, or Linux?: Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions