What I did:
- Git pull from main
- run
nvm use
to use node v14.17.6 (npm v6.14.15) thennpm install
- delete package-lock.json then run
npm install
again
After steps 2 and 3, for some dependencies package-lock.json, npmjs changed to yarnpkg.
Questions:
- Why did this happen since this project does not use yarn
- How can I fix this
CodePudding user response:
try this -
npm cache clear - -force
npx rimraf ./**/node_modules
del package-lock.json
now run npm install
again