-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
2
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
Not Started
-
3scale 2019-07-01
Steps to reproduce:
- Remove ./node_modules directory
- Run npm installl
It outputs
npm WARN acorn-jsx@5.0.1 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none is installed. You must install peer dependencies yourself.
- Run npm ls
It will output and returns with an exit code 1
npm ERR! peer dep missing: webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc, required by babel-loader@6.4.1 npm ERR! peer dep missing: acorn@^6.0.0, required by acorn-jsx@5.0.1
Explanation:
Expected result: It should return an exit code 0 and all dependencies are installed
UPDATE:
The current way of reproducing it is the following:
rm -rf node_modules rm package-lock.json npm cache clean --force npm install npm ls
However, the current failure is different:
npm ERR! peer dep missing: eslint@>=6.0.0, required by eslint-plugin-flowtype@3.11.1
Note: There are many dependencies that need to be updated and the lock is modified in the process of reproducing this issue.
Requirements
In order to close this issue once and for all, we should add a job that runs npm ls to check if the dependencies are all OK