NPM Registry: Install @Latest and dependencies
Summary
When a NPM package library is deployed in the packages of a project, the npm install action does not works if the version is not added to the command. Also, the npm install does not install the library dependencies.
Steps to reproduce
- Create a new project in Gitlab, and publish a npm package (@test/test-lib). The version of the lib will be 0.0.1 and must be defined in the package.json. Also install a dependency in this project (npm i axios -s) before the publish.
- In other npm project, install the lib (npm install @test/test-lib -s) --> This command will fail WHY?
- Ok, so lets install the version 0.0.1 (npm install @test/test-lib@0.0.1 -s) --> This command will not install the axios dependency of the test-lib library!! WHY?
What is the current bug behavior?
Npm install command does not works with the published packages without the version. Npm install command does not install the dependencies of the published package.
What is the expected correct behavior?
Npm install command should install the latest version of the dependency. Npm install command should install the dependencies of the library in the project that uses the library.
Edited by Tim Rizzi