无法启动npm启动

时间:2020-10-12 06:13:22

标签: node.js reactjs npm npm-start

我正在尝试运行我的React项目,但是我无法运行它。该项目包含启用了eslint的打字稿。我试图在先前提出的问题Question的帮助下解决此问题,但这对我来说不起作用。

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! slipstream-frontend@0.3.0 lint: `eslint --ext js,ts,tsx src`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the slipstream-frontend@0.3.0 lint 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\ROHIT AGGARWAL\AppData\Roaming\npm-cache\_logs\2020-10-12T06_02_13_786Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! slipstream-frontend@0.3.0 prestart: `npm run lint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the slipstream-frontend@0.3.0 prestart 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\ROHIT AGGARWAL\AppData\Roaming\npm-cache\_logs\2020-10-12T06_02_15_471Z-debug.log

我尝试删除package.json文件,然后

npm cache clean
npm install

那对我没用。

1 个答案:

答案 0 :(得分:0)

是的,这可能会发生, 从终端中的命令开始

npm单元react-app app_name

cd app_name

npm开始