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

npm ci creates wrong symlink #21204

Open
3 of 14 tasks
nakagawa424 opened this issue Jul 12, 2018 · 0 comments
Open
3 of 14 tasks

npm ci creates wrong symlink #21204

nakagawa424 opened this issue Jul 12, 2018 · 0 comments

Comments

@nakagawa424
Copy link

nakagawa424 commented Jul 12, 2018

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • npm is producing incorrect or undesirable behavior.
  • Other (see below for feature requests):

What's going wrong?

How can the CLI team reproduce the problem?

p.tar.gz

$ tar xzvf p.tar.gz
$ for i in a b c; do (cd p/$i; npm ci); done
...
npm ERR! enoent ENOENT: no such file or directory, open ' ... /p/c/node_modules/b/node_modules/a/package.json'
...
$ ls -l p/c/node_modules/b/node_modules/a
lrwxrwxrwx 1 nakagawa nakagawa 13 Jul 13 01:12 p/c/node_modules/b/node_modules/a -> ../../../../a

npm i works fine.

$ rm -rf p/?/node_modules
$ for i in a b c; do (cd p/$i; npm i); done
$ ls -l p/c/node_modules/b/node_modules/a
lrwxrwxrwx 1 nakagawa nakagawa 7 Jul 13 01:09 p/c/node_modules/b/node_modules/a -> ../../a

supporting information:

  • npm -v prints:6.1.0
  • node -v prints:v10.6.0
  • npm config get registry prints:https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?:Linux
  • Network issues:
    • Geographic location where npm was run:
    • I use a proxy to connect to the npm registry.
    • I use a proxy to connect to the web.
    • I use a proxy when downloading Git repos.
    • I access the npm registry via a VPN
    • I don't use a proxy, but have limited or unreliable internet access.
  • Container:
    • I develop using Vagrant on Windows.
    • I develop using Vagrant on OS X or Linux.
    • I develop / deploy using Docker.
    • I deploy to a PaaS (Triton, Heroku).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant