Repository: gatsbyjs/gatsby

Issue #23289: bash: gatsby: command not found 
Created: 2020-04-20T08:52:35Z
Description
I'm trying to run gatsby, returns me "bash: gatsby: command not found"
Tried reinstall of node , npm , gatsby-cli also. It was working good a day ago, Suddenly came into this problem.
I tried changing permission to allow in node folder as well.
Tried almost all internet solutions.
Please help
Steps to reproduce
$  npm install -g gatsby-cli
$ npm --version
6.14.4
ACER@Acer-SuperMars MINGW64 ~
$ node --version
v13.13.0
cd /d to folder
gatsby develop
or
gatsby new "name"
Windows 10 with Git Bash
RAN
ACER@Acer-SuperMars MINGW64 ~
$  npm install -g gatsby-cli

npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
C:\Users\ACER\gatsby -> C:\Users\ACER\node_modules\gatsby-cli\lib\index.js

> gatsby-cli@2.11.12 postinstall C:\Users\ACER\node_modules\gatsby-cli
> node scripts/postinstall.js

Success!

Welcome to the Gatsby CLI! Please visit https://www.gatsbyjs.org/docs/gatsby-cli/ for more information.

Usage: gatsby <command> [options]

Commands:
  gatsby develop                   Start development server. Watches files, rebuilds, and hot reloads if something changes
  gatsby build                     Build a Gatsby project.
  gatsby serve                     Serve previously built Gatsby site.
  gatsby info                      Get environment information for debugging and issue reporting
  gatsby clean                     Wipe the local gatsby environment including built assets and cache
  gatsby repl                      Get a node repl with context of Gatsby environment, see (https://www.gatsbyjs.org/docs/gatsby-repl/)
  gatsby recipes [recipe]          [EXPERIMENTAL] Run a recipe
  gatsby new [rootPath] [starter]  Create new Gatsby project.
  gatsby plugin                    Useful commands relating to Gatsby plugins
  gatsby telemetry                 Enable or disable Gatsby anonymous analytics collection.

Options:
  --verbose                Turn on verbose output  [boolean] [default: false]
  --no-color, --no-colors  Turn off the color in output  [boolean] [default: false]
  --json                   Turn on the JSON logger  [boolean] [default: false]
  -h, --help               Show help  [boolean]
  -v, --version            Show the version of the Gatsby CLI and the Gatsby package in the current project  [boolean]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\gatsby-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN babel-loader@8.1.0 requires a peer of webpack@>=2 but none is installed. You must install peer dependencies yourself.
npm WARN babel-eslint@10.1.0 requires a peer of eslint@>= 4.12.1 but none is installed. You must install peer dependencies yourself.
npm WARN babel-plugin-remove-graphql-queries@2.8.3 requires a peer of gatsby@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN url-loader@1.1.2 requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: abbrev@1.1.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\abbrev):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\abbrev' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.abbrev.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ansi-regex@2.1.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\ansi-regex):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\ansi-regex' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.ansi-regex.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: aproba@1.2.0 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\aproba):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\aproba' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.aproba.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: balanced-match@1.0.0 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\balanced-match):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\balanced-match' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.balanced-match.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chownr@1.1.4 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\chownr):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\chownr' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.chownr.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: code-point-at@1.1.0 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\code-point-at):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\code-point-at' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.code-point-at.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: concat-map@0.0.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\concat-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\concat-map' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.concat-map.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: console-control-strings@1.1.0 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\console-control-strings):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\console-control-strings' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.console-control-strings.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: core-util-is@1.0.2 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\core-util-is):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\core-util-is' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.core-util-is.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: deep-extend@0.6.0 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\deep-extend):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\deep-extend' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.deep-extend.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: delegates@1.0.0 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\delegates):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\delegates' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.delegates.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: detect-libc@1.0.3 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\detect-libc):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\detect-libc' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.detect-libc.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs.realpath@1.0.0 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\fs.realpath):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\fs.realpath' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.fs.realpath.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: has-unicode@2.0.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\has-unicode):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\has-unicode' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.has-unicode.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: inherits@2.0.4 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\inherits):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\inherits' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.inherits.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ini@1.3.5 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\ini):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\ini' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.ini.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: isarray@1.0.0 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\isarray):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\isarray' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.isarray.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.5 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\minimist' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.minimist.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ms@2.1.2 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\ms):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\ms' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.ms.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: npm-normalize-package-bin@1.0.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\npm-normalize-package-bin):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\npm-normalize-package-bin' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.npm-normalize-package-bin.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: number-is-nan@1.0.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\number-is-nan):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\number-is-nan' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.number-is-nan.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: object-assign@4.1.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\object-assign):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\object-assign' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.object-assign.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-homedir@1.0.2 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\os-homedir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\os-homedir' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.os-homedir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-tmpdir@1.0.2 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\os-tmpdir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\os-tmpdir' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.os-tmpdir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: path-is-absolute@1.0.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\path-is-absolute):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\path-is-absolute' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.path-is-absolute.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: process-nextick-args@2.0.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\process-nextick-args):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\process-nextick-args' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.process-nextick-args.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safe-buffer@5.1.2 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\safe-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\safe-buffer' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.safe-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safer-buffer@2.1.2 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\safer-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\safer-buffer' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.safer-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sax@1.2.4 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\sax):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\sax' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.sax.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: semver@5.7.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\semver):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\semver' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.semver.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: set-blocking@2.0.0 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\set-blocking):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\set-blocking' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.set-blocking.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: signal-exit@3.0.2 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\signal-exit):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\signal-exit' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.signal-exit.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-json-comments@2.0.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\strip-json-comments):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\strip-json-comments' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.strip-json-comments.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: util-deprecate@1.0.2 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\util-deprecate):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\util-deprecate' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.util-deprecate.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: wrappy@1.0.2 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\wrappy):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\wrappy' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.wrappy.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: yallist@3.1.1 (node_modules\gatsby-cli\node_modules\fsevents\node_modules\yallist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\yallist' -> 'C:\Users\ACER\node_modules\gatsby-cli\node_modules\fsevents\node_modules\.yallist.DELETE'

+ gatsby-cli@2.11.12
added 17 packages from 12 contributors and updated 1 package in 24.269s


Ran
ACER@Acer-SuperMars MINGW64 ~
$ npm list -g --depth=0
C:\Users\ACER
+-- UNMET DEPENDENCY gatsby-cli@2.11.7
| +-- @babel/code-frame@7.8.3
| +-- @babel/runtime@7.9.2
| +-- @hapi/joi@15.1.1
| +-- better-opn@1.0.0
| +-- bluebird@3.7.2
| +-- chalk@2.4.2
| +-- clipboardy@2.3.0
| +-- common-tags@1.8.0
| +-- configstore@5.0.1
| +-- convert-hrtime@3.0.0
| +-- core-js@2.6.11
| +-- envinfo@7.5.0
| +-- execa@3.4.0
| +-- fs-exists-cached@1.0.0
| +-- fs-extra@8.1.0
| +-- gatsby-core-utils@1.1.1
| +-- gatsby-telemetry@1.2.3
| +-- hosted-git-info@3.0.4
| +-- ink@2.7.1
| +-- ink-spinner@3.0.1
| +-- is-valid-path@0.1.1
| +-- lodash@4.17.15
| +-- meant@1.0.1
| +-- node-fetch@2.6.0
| +-- object.entries@1.1.1
| +-- opentracing@0.14.4
| +-- pretty-error@2.1.1
| +-- progress@2.0.3
| +-- prompts@2.3.2
| +-- react@16.13.1
| +-- redux@4.0.5
| +-- resolve-cwd@2.0.0
| +-- semver@6.3.0
| +-- signal-exit@3.0.3
| +-- source-map@0.7.3
| +-- stack-trace@0.0.10
| +-- strip-ansi@5.2.0
| +-- update-notifier@3.0.1
| +-- uuid@3.4.0
| +-- yargs@12.0.5
| `-- yurnalist@1.1.2
`-- global@4.4.0

npm ERR! missing: gatsby-cli@2.11.7, required by ACER
npm ERR! missing: gatsby-core-utils@1.1.1, required by gatsby-cli@2.11.7
npm ERR! missing: gatsby-telemetry@1.2.3, required by gatsby-cli@2.11.7
npm ERR! missing: gatsby-core-utils@1.1.1, required by gatsby-telemetry@1.2.3


RAN
ACER@Acer-SuperMars MINGW64 ~
$ gatsby develop
bash: gatsby: command not found


Expected result
Run gatsby
Environment
Run gatsby info --clipboard in your project directory and paste the output here.
ACER@Acer-SuperMars MINGW64 ~
$ gatsby info --clipboard
bash: gatsby: command not found

I run windows 10 with git bash

Duplicate issue #23313: Gatsby shows up on Git CMD not on Git Bash. Starter installation error also.
Created: 2020-04-20T20:04:54Z
Description
1 . I had installed gatsby through Git bash.
bash throwing error when "gatsby new ...." command is given, It can read "npx gatsby new...." but given an error in the end.

bash throwing error :
bash: gatsby: command not found when given "gatsby new ... command" without npx.

Ran through Git bash
C:\Users\ACER>npm -g ls --depth=0
C:\usr\local
`-- gatsby-cli@2.11.13
npm ERR! error in C:\usr\local\node_modules\gatsby-cli\node_modules\fsevents: ENOENT: no such file or directory, open 'C:\usr\local\node_modules\gatsby-cli\node_modules\fsevents\package.json'
npm ERR! peer dep missing: eslint@>= 4.12.1, required by babel-eslint@10.1.0
npm ERR! peer dep missing: webpack@>=2, required by babel-loader@8.1.0
npm ERR! peer dep missing: webpack@^3.0.0 || ^4.0.0, required by url-loader@1.1.2
npm ERR! peer dep missing: gatsby@^2.0.0, required by babel-plugin-remove-graphql-queries@2.8.3
npm ERR! peer dep missing: acorn@^6.0.0, required by acorn-dynamic-import@4.0.0
Steps to reproduce
run npm install -g gatsby-cli  on bash
npx gatsby new ...... -------------- if only is given "gatsby new....." command gives bash: gatsby: command not found.
ACER@Acer-SuperMars MINGW64 /d
$ npx gatsby new helloth
info Creating new site from git: https://github.com/gatsbyjs/gatsby-starter-default.git
Cloning into 'helloth'...
remote: Enumerating objects: 28, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 28 (delta 2), reused 13 (delta 2), pack-reused 0
Receiving objects: 100% (28/28), 613.59 KiB | 520.00 KiB/s, done.
Resolving deltas: 100% (2/2), done.
success Created starter directory layout
info Installing packages...

sharp@0.25.2 install D:\helloth\node_modules\sharp
(node install/libvips && node install/dll-copy && prebuild-install --runtime=napi) || (node-gyp rebuild && node install/dll-copy)

info sharp Using cached C:\Users\ACER\AppData\Roaming\npm-cache_libvips\libvips-8.9.1-win32-x64.tar.gz
info sharp Creating D:\helloth\node_modules\sharp\build\Release
info sharp Copying DLLs from D:\helloth\node_modules\sharp\vendor\lib to D:\helloth\node_modules\sharp\build\Release

core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\bmp\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js
https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\core\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\custom\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\gif\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\jpeg\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-blit\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-blur\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-circle\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-color\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-contain\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-cover\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-crop\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-displace\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-dither\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-fisheye\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-flip\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-gaussian\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-invert\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-mask\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-normalize\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-print\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-resize\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-rotate\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-scale\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-shadow\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugin-threshold\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\plugins\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\png\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\tiff\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\types\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules@jimp\utils\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js@2.6.11 postinstall D:\helloth\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


core-js-pure@3.6.5 postinstall D:\helloth\node_modules\core-js-pure
node -e "try{require('./postinstall')}catch(e){}"


core-js@3.6.5 postinstall D:\helloth\node_modules\jimp\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"


gatsby-telemetry@1.2.5 postinstall D:\helloth\node_modules\gatsby-telemetry
node src/postinstall.js || true


cwebp-bin@5.1.0 postinstall D:\helloth\node_modules\cwebp-bin
node lib/install.js

√ cwebp pre-build test passed successfully

mozjpeg@6.0.1 postinstall D:\helloth\node_modules\mozjpeg
node lib/install.js

√ mozjpeg pre-build test passed successfully

pngquant-bin@5.0.2 postinstall D:\helloth\node_modules\pngquant-bin
node lib/install.js

‼ Command failed: D:\helloth\node_modules\pngquant-bin\vendor\pngquant.exe --version
‼ pngquant pre-build test failed
i compiling from source
× Error: pngquant failed to build, make sure that libpng-dev is installed
at D:\helloth\node_modules\bin-build\node_modules\execa\index.js:231:11
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Promise.all (index 0)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pngquant-bin@5.0.2 postinstall: node lib/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pngquant-bin@5.0.2 postinstall 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!     C:\Users\ACER\AppData\Roaming\npm-cache_logs\2020-04-20T19_47_06_604Z-debug.log
ERROR
Command failed with exit code 1: npm install
Error: Command failed with exit code 1: npm install


error.js:56 makeError
[8572]/[gatsby]/[execa]/lib/error.js:56:11


index.js:114 handlePromise
[8572]/[gatsby]/[execa]/index.js:114:26


task_queues.js:97 processTicksAndRejections
internal/process/task_queues.js:97:5


Expected result
run gatsby command
Actual result
ran "gatsby develop" command it gave - bash: gatsby: command not found
ran "npm run develop"
ACER@Acer-SuperMars MINGW64 /d/helloth
$ npm run develop

gatsby-starter-default@0.1.0 develop D:\helloth
gatsby develop

ERROR #10226  CONFIG
Couldn't find the "gatsby-plugin-sharp" plugin declared in "D:\helloth\gatsby-config.js".
Tried looking for a local plugin in D:\helloth\plugins\gatsby-plugin-sharp.
Tried looking for an installed package in the following paths:

D:\helloth\node_modules\gatsby\dist\bootstrap\load-themes\node_modules\gatsby-plugin-sharp
D:\helloth\node_modules\gatsby\dist\bootstrap\node_modules\gatsby-plugin-sharp
D:\helloth\node_modules\gatsby\dist\node_modules\gatsby-plugin-sharp
D:\helloth\node_modules\gatsby\node_modules\gatsby-plugin-sharp
D:\helloth\node_modules\gatsby-plugin-sharp
D:\node_modules\gatsby-plugin-sharp

not finished open and validate gatsby-configs - 0.057s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gatsby-starter-default@0.1.0 develop: gatsby develop
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gatsby-starter-default@0.1.0 develop 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!     C:\Users\ACER\AppData\Roaming\npm-cache_logs\2020-04-20T20_02_47_033Z-debug.log

C:\Users\ACER>gatsby -v
Gatsby CLI version: 2.11.13
C:\Users\ACER>npm -g ls --depth=0
C:\usr\local
`-- gatsby-cli@2.11.13
npm ERR! error in C:\usr\local\node_modules\gatsby-cli\node_modules\fsevents: ENOENT: no such file or directory, open 'C:\usr\local\node_modules\gatsby-cli\node_modules\fsevents\package.json'
npm ERR! peer dep missing: eslint@>= 4.12.1, required by babel-eslint@10.1.0
npm ERR! peer dep missing: webpack@>=2, required by babel-loader@8.1.0
npm ERR! peer dep missing: webpack@^3.0.0 || ^4.0.0, required by url-loader@1.1.2
npm ERR! peer dep missing: gatsby@^2.0.0, required by babel-plugin-remove-graphql-quer
Environment
System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Binaries:
Node: 12.16.2 - C:\Program Files\nodejs\node.EXE
npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 44.18362.449.0
Run gatsby info --clipboard in your project directory and paste the output here.

Closing comment (2020-04-21T08:23:01Z): This is a duplicate of #23289