0
⠋ 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

Removed cache and reinstalled npm package, but not effective.

I did as follows. npm start dev

enter image description here

4

1 回答 1

0

这是一个冲突的端口。只需更新您的 webpack.config.js 并手动设置端口。

   devServer: {
     historyApiFallback: true,
     contentBase: './',
     port: 3000 // <--- Add this line and choose your own port number
   }

在 GitHub 上查看此问题

于 2019-07-11T05:15:57.087 回答