Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

npm install fails when node_modules is a symlink #10013

@myitcv

Description

@myitcv

Steps to reproduce:

cd `mktemp -d`
npm init --force
ln -s `mktemp -d` node_modules
npm install --save-dev [email protected]
npm install --save-dev [email protected]

Gives the following warning:

npm WARN update-linked node_modules/typescript needs updating to 1.7.0-dev.20151014 from 1.7.0-dev.20151006 but we can't, as it's a symlink

which should be an error because the install has not updated the installed version:

$ ./node_modules/.bin/tsc --version
message TS6029: Version 1.7.0-dev.20151006

Repeat the above but without a symlinked node_modules and it works just fine:

$ ./node_modules/.bin/tsc --version
message TS6029: Version 1.7.0-dev.20151014

Important details:

$ node --version
v4.2.0
$ npm --version
3.3.8

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions