Closed 29Esther closed 3 years ago
Thanks for reporting! I suspect this to be an npm bug. All dependencies listed as in the error message are devDependencies and shouldn't be installed at all. This makes the "extraneous" error correct. Still I don't understand why they are installed in the first place.
I was able to reproduce this by executing npm install @ui5/cli
in a new directory with nothing but an initial package.json. This installs 962 packages.
I observed that the generated package-lock.json lists the beforementioned devDependencies as non-dev dependencies. I then tried to execute npm install --no-package-lock @ui5/cli
, which only installs 455 packages, correctly ignoring any devDependencies.
yarn install
did not show this behavior.
I think this needs to be checked with the npm CLI team.
Anyways, I highly recommend you to use a package-lock.json in your project and to use npm ci
in your CI environment.
Hi @RandomByte ,
Thanks for your instants reply. I added a package-lock.json in our application. Then I can pass the npm ls
now.
Expected Behavior
npm ls without errpr
Current Behavior
many errors
Steps to reproduce the issue
Context
ui5 --version
when using the CLI):1.12.2
v13.5.0, v8.**, v6.** all have this issue
6.13.4
macOS Catalina
N/A
{...}
Affected components (if known)
I tested. 'npm ls' is fine with ui5-server@1.1.1, so the problem is introduced by ui5-cli only.
Log Output / Stack Trace
This issue is very critical for SAP internal team as all the code needs to pass whitesource check.