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

Error: Command failed when running build #33

Open
schalkneethling opened this issue Apr 5, 2018 · 2 comments
Open

Error: Command failed when running build #33

schalkneethling opened this issue Apr 5, 2018 · 2 comments

Comments

@schalkneethling
Copy link

When explicitly running npm run build or, when it is run as a pre-commit hook, I get the following error in Terminal:

> MDN-Fiori@0.1.0 build /Users/espressive/repos/mdn-fiori
> node lib/build.js

Building...
{ Error: Command failed: rm -rfv /Users/user/repos/mdn-fiori/docs/* && hugo && sw-precache --root=docs && git add -A

    at ChildProcess.exithandler (child_process.js:273:12)
    at ChildProcess.emit (events.js:180:13)
    at maybeClose (internal/child_process.js:936:16)
    at Socket.stream.socket.on (internal/child_process.js:353:11)
    at Socket.emit (events.js:180:13)
    at Pipe._handle.close [as _onclose] (net.js:541:12)
  killed: false,
  code: 255,
  signal: null,
  cmd: 'rm -rfv /Users/user/repos/mdn-fiori/docs/* && hugo && sw-precache --root=docs && git add -A' }

You can see the repo in question at https://github.com/mdn/mdn-fiori

Thanks!

@paulmsmith
Copy link

@schalkneethling That looks like you don't have the code in a git repository. If you go to the root directory/folder and run git init you can answer some basic questions to set-up git on your local computer. Do that and then run the command again.

@schalkneethling
Copy link
Author

@paulmsmith Thanks, but it is definitely a git repository:

screen shot 2018-04-28 at 12 52 54

You can also see the repo in question at https://github.com/mdn/mdn-fiori

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants