Skip to content

[BUG][since 7.18.0] A wrong symlink is produced when installing a local file: package. #4994

Closed
@issuefiler

Description

@issuefiler

The environments

The directory tree

  • T:/a/b/c/
    • PackageA/
      • package.json
    • PackageB/

T:/a/b/c/PackageA/package.json

"dependencies": {
	"package-b": "file:../PackageB/"
}

The command

The working directory: B:/a/b/c/PackageA/.

npm install

on Windows 10’s command prompt.


The results

The following symlink is created.

NPM version 7.17.0 ✔

./node_modules/package-b ⟶[symlink]⟶ T:/a/b/c/PackageB/

NPM version 7.18.0 or newer ❌bug

./node_modules/package-b ⟶[symlink]⟶ T:/a/PackageB/


Tested with freshly installed NPM.

npm install -g [email protected]
npm install
npm install -g [email protected]
npm install

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 1high priority issueRelease 8.xwork is associated with a specific npm 8 releasecmd:installrelated to `npm install`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions