npm test failure on check-pretty script
See original GitHub issueWhen running npm test with a new install of the repo, I’m getting:
npm ERR! gatsby-starter-gcn@1.1.0 check-pretty: prettier -l {,src/**/}*.{js,jsx,json,css,scss}
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the gatsby-starter-gcn@1.1.0 check-pretty script.
I’m looking into whether this might be an environmental issue (running node on Windows 10).
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (12 by maintainers)
Top Results From Across the Web
npm posttest doesn't trigger if npm test fails - Stack Overflow
Worked it out. Not sure if the following will work in Windows. The bash || operator followed by an empty comment : changes...
Read more >pretty-quick - npm
Check that files are correctly formatted, but don't format them. This is useful on CI to verify that all changed files in the...
Read more >npm-test - npm Docs
If true, npm does not run scripts specified in package.json files. Note that commands explicitly intended to run a particular script, such as...
Read more >npm-install-ci-test
If true, npm does not run scripts specified in package.json files. Note that commands explicitly intended to run a particular script, such as...
Read more >start-server-and-test - npm
Then when it finishes it runs npm run test:e2e . If the first or second command fails, the ci script fails. Of course,...
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
Okay. Thanks everyone. Sorry this thread went on so long. It is now updated in
v1.1.2
If there are any other issues please let me know.
Gotcha. I think I will just ignore it to be safe. It’s not a big deal.