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

nin run crashes in new projects #374

Closed
stianjensen opened this issue Apr 15, 2017 · 0 comments
Closed

nin run crashes in new projects #374

stianjensen opened this issue Apr 15, 2017 · 0 comments

Comments

@stianjensen
Copy link
Member

If you have just created a new project using nin new, and made an initial commit, nin run will fail with the following error:

$ nin run
Found nin.json in project root (/Users/stiaje/Projects/test-nin)
SockJS v0.3.16 bound to "/socket"
child_process.js:524
    throw err;
    ^

Error: Command failed: git config --get remote.origin.url

    at checkExecSyncError (child_process.js:481:13)
    at execSync (child_process.js:521:13)
    at Object.getProjectMetadata (/Users/stiaje/Projects/nin/nin/backend/utils.js:12:20)
    at /Users/stiaje/Projects/nin/nin/backend/serve.js:145:22
    at /Users/stiaje/Projects/nin/nin/node_modules/graceful-fs/graceful-fs.js:43:10
    at /Users/stiaje/Projects/nin/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:114:15)

The work-around for this error is setting a remote for your local git repo, but this should not be a requirement.

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

1 participant