Friday 26 October 2018

npm install does not appear to be reading package-lock.json

node version: 8.12.0npm version: 6.4.1Here are my steps for testing:​Create new empty directory.Change directory into new directory.Run "npm init" and answer all the questions.Run "npm init cors --save" (This installs fine and updates package.json and package-lock.json as expected.Delete the node_modules directory.Delete the package.json. Do not delete package-lock.jsonRun "npm install"This complained that package.json is missing and does not install the cors module specified in the package-lock.jsonAm I misunderstanding this or am I missing a flag?

Submitted October 26, 2018 at 03:05PM by webb_world

No comments:

Post a Comment