cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] Installing local package with npm v7 in Windows partially modify package-lock with backslashes

Open guilhermetod opened this issue 3 years ago • 7 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

When installing a local dependency in Windows, the posix paths under "package-lock.dependencies" are converted to Windows style paths, with double backslashes. The paths in "package.json" and under "package-lock.packages" are kept unix style.

Expected Behavior

package-lock is kept as is when installing dependencies.

Steps To Reproduce

Clone and follow the instructions on sample repository.

Environment

  • OS: Windows 10 20h2
  • Node: 16.2.0
  • npm: 7.13.0

guilhermetod avatar May 22 '21 16:05 guilhermetod

This is also present for version 8.3.0.

nzacca avatar Dec 30 '21 12:12 nzacca

+1, commenting for visibility!

anurag-roy avatar Mar 17 '22 15:03 anurag-roy

+1 waiting for this to be solved :)

souravsaraf123 avatar Mar 25 '22 06:03 souravsaraf123

This is hitting us as well. It is a pretty lame bug. This effectively blocks cross platform development when using a file:/path locally installable package.

httpete avatar Apr 15 '22 12:04 httpete

Any update on this?

anurag-roy avatar May 23 '22 14:05 anurag-roy

3 months , any update please ?

souravsaraf123 avatar Jun 13 '22 12:06 souravsaraf123

please prioritize this 😞

souravsaraf123 avatar Aug 10 '22 07:08 souravsaraf123

any updates on this ?

souravsaraf123 avatar Feb 15 '23 06:02 souravsaraf123

it has been a while. Any updates?

donaldkg avatar Jun 01 '23 08:06 donaldkg