Just created a new project from scratch. It defaulted to node v8.1.x and npm v5 which is great.
However, adding packages to the
package.json file (either manually or by using the great "Add Package" button, does not update the corresponding
package-lock.json file, and so the dependency is not actually installed.
For instance, adding
node-fetch as a dependency using Add Package seems to "work" (succeeds without errors), but writing
server.js fails with a "module not found."
This was quite confusing and hard to debug! Is there a new "proper" way to add packages and update the lockfile? My workaround was to simply delete
package-lock.json and ignore the warnings that the auto-npm-install script generates in the logs.