We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d79282 commit 1fa7c4dCopy full SHA for 1fa7c4d
bin/gatsby.js
@@ -31,7 +31,8 @@ var loadGatsby = function (path) {
31
}
32
33
var loadGlobalGatsby = function () {
34
- if (process.argv[2] !== "new") {
+ var commandsToIgnore = ['new', '--help']
35
+ if (commandsToIgnore.indexOf(process.argv[2]) === -1) {
36
console.log(
37
"A local install of Gatsby was not found.\n" +
38
"Generally you should save Gatsby as a site dependency e.g. npm install --save gatsby\n" +
0 commit comments