Skip to content

Fix Getting Started Documentation

Roger requested to merge rogerluan/danger.systems:patch-1 into master

There was an issue that made me spend like 30 minutes figuring out why I kept getting the following error:

error: no executable product named 'danger'

When running swift run danger pr https://github.com/danger/swift/pull/146

And then when omitting swift run from the command above (danger pr https://github.com/danger/swift/pull/146) I started getting:

Starting Danger PR on danger/swift#146
/usr/local/lib/node_modules/danger/distribution/commands/utils/fileUtils.js:26
    throw new Error("Could not find a `dangerfile.js` or `dangerfile.ts` in the current working directory.");
    ^

Error: Could not find a `dangerfile.js` or `dangerfile.ts` in the current working directory.
    at Object.dangerfilePath (/usr/local/lib/node_modules/danger/distribution/commands/utils/fileUtils.js:26:11)
    at Object.<anonymous> (/usr/local/lib/node_modules/danger/distribution/commands/danger-pr.js:104:81)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Function.Module.runMain (module.js:665:10)
    at startup (bootstrap_node.js:201:16)
    at bootstrap_node.js:626:3

Turns out I should be running danger-swift and not danger :)

Merge request reports