I have Node v10.22.0, npm 6.14.6, on MacOS Catalina.
I start from a git repo that contains a package-lock.json
that specifies @truffle
dependencies and no node_modules
folder, no package.json
. After I cloned the repo, I run npm install
to install dependencies. The npm doc says
If the package has a package-lock ..., the installation of dependencies will be driven by that
Surprisingly it actually installs 8 packages that have nothing to do with my project: d
, es5-ext
, es6-iterator
, es6-symbol
, ext
, next-tick
, type
AND it overwrites package-lock.json
with a new one containing dependencies on these 8 packages.
If I overwrite package-lock.json
and launch npm install
, it redoes the same trick.
Questions:
- what is happening?
- how can I make
npm install
populatenode_modules
correctly?