Plase add package.lock.json or yarn.lock
See original GitHub issueWithout it npm installs different versions, and the project might be broken with random error messages.
For example:
not finished load plugins - 0.671s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gatsby-starter-blog@0.1.0 jamstack-develop: `node createConfig.js && gatsby develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gatsby-starter-blog@0.1.0 jamstack-develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-11-05T12_00_51_245Z-debug.log
Caused by: https://github.com/aws-amplify/amplify-js/issues/4268
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
Should I commit yarn.lock and package-lock.json files?
If you commit both the yarn.lock file, AND the package-lock.json files there are a lot of ways that the 2 files can provide...
Read more >What is package lock json? Lockfiles for yarn & npm ... - Snyk
json as well as Yarn's yarn.lock. Package lock files serve as a rich manifest of dependencies for projects that specify the exact version...
Read more >Yarn import now uses package-lock.json | Yarn Blog
All you need to do is issue the yarn import command in a repository with a package-lock.json file, and yarn will use the...
Read more >Yarn lock: how it works and what you risk without maintaining ...
Answer: Well, yarn will, of course, install dependencies freshly added to package.json that are not yet installed and/or not present in yarn.
Read more >imsnif/synp: Convert yarn.lock to package-lock.json ... - GitHub
lock and package-lock.json include package checksums for dependencies. Since npm is slowly moving to sha-512 checksums which yarn does not (yet) ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey, so tested this out some, and I have figured out that there are some issues with some npm dependencies with Amplify at the time being. For now, just use yarn and follow the new instructions, you should be good to go. Once I get the issues figured out with npm and the new release of Amplify is out, I’ll also add a
package-lock.json
for npm users.@reece2208 have you all tried yarn?