I'm trying to deploy my changes on the GitHub pages but unfortunately got the following error, during the execution of `npm run deploy`.
> email@example.com deploy /home/yaroslav/Desktop/lab/2048 > gh-pages -b master -d build ENOENT: no such file or directory, stat '/home/yaroslav/Desktop/lab/2048/build' npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! firstname.lastname@example.org deploy: `gh-pages -b master -d build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the email@example.com deploy 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! /home/yaroslav/.npm/_logs/2020-05-09T12_02_20_500Z-debug.log
The same error if a command for `deploy` is `gh-pages -d build`.
Solved! Solved! Go to Solution.