Created
October 27, 2017 07:59
-
-
Save paulspencerwilliams/ab607b740f5b4dfd18cf58b1b1568a3a to your computer and use it in GitHub Desktop.
Failure when attempting to deploy Egghead.io Redux course code to now.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> > redux-course@0.1.0 build /home/nowuser/src | |
> > react-scripts build | |
> Creating an optimized production build... | |
> Compiled successfully. | |
> File sizes after gzip: | |
> 57.9 KB build/static/js/main.73d14002.js | |
> 522 B build/static/css/main.6a72b013.css | |
> The project was built assuming it is hosted at the server root. | |
> To override this, specify the homepage in your package.json. | |
> For example, add this to build it for GitHub Pages: | |
> "homepage" : "http://myname.github.io/myapp", | |
> The build folder is ready to be deployed. | |
> You may serve it with a static server: | |
> yarn global add serve | |
> serve -s build | |
> ▲ npm start | |
> npm WARN lifecycle The node binary used for scripts is /home/nowuser/bin/node but npm is using /usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with. | |
> > redux-course@0.1.0 start /home/nowuser/src | |
> > json-server --static ./build db.json | |
> \{^_^}/ hi! | |
> Oops, db.json doesn't seem to exist | |
> Creating db.json with some default data | |
> fs.js:653 | |
> return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); | |
> ^ | |
> Error: EACCES: permission denied, open 'db.json' | |
> at Object.fs.openSync (fs.js:653:18) | |
> at Object.fs.writeFileSync (fs.js:1300:33) | |
> at start (/home/nowuser/src/node_modules/json-server/lib/cli/run.js:116:10) | |
> at module.exports (/home/nowuser/src/node_modules/json-server/lib/cli/run.js:159:3) | |
> at module.exports (/home/nowuser/src/node_modules/json-server/lib/cli/index.js:81:3) | |
> at Object.<anonymous> (/home/nowuser/src/node_modules/json-server/lib/cli/bin.js:3:14) | |
> 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) | |
> npm ERR! code ELIFECYCLE | |
> npm ERR! errno 1 | |
> npm ERR! redux-course@0.1.0 start: `json-server --static ./build db.json` | |
> npm ERR! Exit status 1 | |
> npm ERR! | |
> npm ERR! Failed at the redux-course@0.1.0 start 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/nowuser/.npm/_logs/2017-10-27T07_46_33_703Z-debug.log | |
> No open port found. Make sure 'npm start' creates an HTTP server on a port (any). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment