Yes Sure!
I am have done following steps on windows server.(As Administrator)
- npm install
- npm run build
after creating build
- npm install -g serve
- serve-s build(error: serve is not recognised as internal or external command)
(-----------------------------------------other merhod--------------------------------------)
after creating successful build using command
npm run build
[---- File sizes after gzip:
280.24 KB build\static\js\2.144b34ee.chunk.js
24.76 KB build\static\css\main.6eeb4ef8.chunk.css
13.95 KB (+5 B) build\static\js\main.055f727e.chunk.js
779 B (+2 B) build\static\js\runtime~main.db59b62c.js
The project was built assuming it is hosted at chakde11
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed. ---]
i fired the command
- npm run deploy
it is showing error:
[-----
react-reduction@1.0.0 deploy C:\inetpub\vhosts\chakde11.com\httpdocs
gh-pages -d build
(node:5284) ExperimentalWarning: The fs.promises API is experimental
Failed to get remote.origin.url (task must either be run in a git repository with a configured origin remote or must be configured with the "repo" option).
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-reduction@1.0.0 deploy: gh-pages -d build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-reduction@1.0.0 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! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-04-25T09_43_24_621Z-debug.log-----]