Skip to content

This project showcases a possible bug found in npm v7

Notifications You must be signed in to change notification settings

garciaalvaro/npm-deps-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project showcases a possible bug in npm v7.

The problem is that npm v7 does not install linked local packages dependencies. To see the behaviour of npm v6 vs v7, this repository has 2 branches: package-lock-v1 and package-lock-v2.


To reproduce:

  • With node-14 and npm-6 installed, checkout branch package-lock-v1, go to ./app and run npm install. The produced node_modules folder structure is:
node_modules
	.bin
	my-local-pkg
		node_modules
			typescript
	prettier
  • With node-15 and npm-7 installed, checkout branch package-lock-v2, go to ./app and run npm install. The produced node_modules folder structure is:
node_modules
	.bin
	my-local-pkg
	prettier

Compare the two outputs, npm v7 does not install my-local-pkg dependencies, there is no node_modules folder generated in the linked ../my-local-pkg.

About

This project showcases a possible bug found in npm v7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published