1
我是NodeJS和NPM的新手。“npm start”显示“未处理的承诺拒绝”错误
当我一个项目的NodeJS中运行npm start
,出现如下错误:
Starting the development server...
(node:9417) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Exited with code 3
这个错误是什么意思? 如何调试这个问题?
$ grep start package.json
"start": "react-scripts start",
$ npm -v
3.10.10
$ node -v
v6.10.1
$ npm ls react-scripts
[email protected] /home/li/sample
└── [email protected]
有没有办法知道这个错误来自?代码中有很多'reject()'。我不确定哪一个导致错误。 – Xin