Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm sanity check failed with error code ELIFECYCLE #35

Open
jiazhengshi opened this issue Dec 31, 2019 · 1 comment
Open

npm sanity check failed with error code ELIFECYCLE #35

jiazhengshi opened this issue Dec 31, 2019 · 1 comment
Labels
question Further information is requested

Comments

@jiazhengshi
Copy link

I tried to run npm test on a Macbook (node v10.16.0, npm 6.9.0), but failed. Part of the log is as follows.

12 info lifecycle @magento/baler@0.0.1~format:check: Failed to exec format:check script
13 verbose stack Error: @magento/baler@0.0.1 format:check: `prettier --list-different $(head -1 prettier-globs)`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:198:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:198:13)
13 verbose stack     at maybeClose (internal/child_process.js:982:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid @magento/baler@0.0.1
@DrewML
Copy link
Contributor

DrewML commented Jan 6, 2020

Thanks for the report @jiazhengshi. Can you send me the output of running the following 3 commands on their own, from the root of the repo?

ls node_modules/.bin
./node_modules/.bin/prettier
head -1 prettier-globs

@DrewML DrewML added the question Further information is requested label Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants