Build failed.
Build Error (Babel) in lodash/includes.js
unexpected end of file
Stack Trace and Error Report: /var/folders/23/8txnjtts6cs_fr10nhv15zyc0000gq/T/error.dump.16e6f83f0c5a38370c4845dc7287711b.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ghost-admin@1.22.1 build: ember build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ghost-admin@1.22.1 build 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! /Users/peterchiu/.npm/_logs/2018-04-07T11_21_19_824Z-debug.log
Warning: Command failed: npm run build
Build Error (Babel) in lodash/includes.js
unexpected end of file
Stack Trace and Error Report: /var/folders/23/8txnjtts6cs_fr10nhv15zyc0000gq/T/error.dump.16e6f83f0c5a38370c4845dc7287711b.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ghost-admin@1.22.1 build: ember build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ghost-admin@1.22.1 build 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! /Users/peterchiu/.npm/_logs/2018-04-07T11_21_19_824Z-debug.log
Use --force to continue.
Aborted due to warnings.
Warning: Failed running “grunt shell:ember:dev” in “core/client”. Use --force to continue.
@acburdine Thanks for the reply. In fact I completed removed the entire git clone and started over but still got the same error. I even installed a fresh version of node v6 using nvm and still got the same error…
@Peter_Chiu Try running yarn cache clean then running the setup command again
cd core/client && rm -rf node_modules && cd ../../ && yarn setup
The yarn cache dir is usually separate to the npm/nvm dirs so even though you installed a fresh version of node you may still have had a corrupted package in the cache.
Unfortunately the dumps don’t really help, it seems the root problem is happening outside of what the logs can show. Have you restarted your machine at all? I’ve seen similar (but not exactly the same) issues occur on macOS and a restart fixed them
Hey @Peter_Chiu, I’m afraid I’m not sure what else to suggest here other than to try the yarn cache clean, removing the node_modules dir in core/client and trying the setup process again. As far as I can see the problem is coming from a corrupted npm package download rather than anything specific to Ghost.