⠋ building schema
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-website@0.0.1 dev: `gatsby develop -H 0.0.0.0`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-website@0.0.1 dev 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\enssel\AppData\Roaming\npm-cache\_logs\2019-07-11T02_36_02_851Z-debug.log已删除缓存并重新安装npm包,但无效。
我做了如下工作。npm start dev

发布于 2019-07-11 13:15:57
它是一个冲突端口。只需手动更新webpack.config.js并设置端口即可。
devServer: {
historyApiFallback: true,
contentBase: './',
port: 3000 // <--- Add this line and choose your own port number
}请参阅此issue on GitHub。
https://stackoverflow.com/questions/56980972
复制相似问题