Create-react-application cannot start after module installation

I am creating a react app using create-react-app qiyujidemo

I install and run the app well. I watch the chrome greetings react. https://www.npmjs.com/package/react-weui Then I install the module with 'npm install weui@1.1.0 react -weui --save . After the module is installed, I type the

npm start`. Then something is wrong.

qiyujidemo@0.1.0 start / Users / yianwork / wechat / qiyujidemo
  response scripts

  sh: response-scripts: command not found
  npm ERR! file sh
  npm ERR! ELIFECYCLE code
  npm ERR! errno ENOENT
  npm ERR! syscall spawn
  npm ERR! qiyujidemo@0.1.0 start: react-scripts start


  npm ERR! spawn ENOENT
  npm ERR!
  npm ERR! An error occurred while running the qiyujidemo@0.1.0 script.
  npm ERR! This is probably not an issue with npm. There is probably an additional exit for registration.

npm ERR! The complete log of this run can be found at:
npm ERR! /Users/yianwork/.npm/_logs/2017-08-07T08_41_16_944Z-debug.log

I am copying /Users/yianwork/.npm/_logs/2017-08-07T08_41_16_944Z-debug.log.

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.1.0_1/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'start' ]
2 info using npm@5.0.3
3 info using node@v8.1.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle qiyujidemo@0.1.0~prestart: qiyujidemo@0.1.0
6 silly lifecycle qiyujidemo@0.1.0~prestart: no script for prestart, continuing
7 info lifecycle qiyujidemo@0.1.0~start: qiyujidemo@0.1.0
8 verbose lifecycle qiyujidemo@0.1.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle qiyujidemo@0.1.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/yianwork/wechat/qiyujidemo/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/yianwork/Library/Android/sdk/tools:/Users/yianwork/Library/Android/sdk/platform-tools
10 verbose lifecycle qiyujidemo@0.1.0~start: CWD: /Users/yianwork/wechat/qiyujidemo
11 silly lifecycle qiyujidemo@0.1.0~start: Args: [ '-c', 'react-scripts start' ]
12 info lifecycle qiyujidemo@0.1.0~start: Failed to exec start script
13 verbose stack Error: qiyujidemo@0.1.0 start: `react-scripts start`
13 verbose stack spawn ENOENT
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:33:16)
13 verbose stack     at emitTwo (events.js:125:13)
13 verbose stack     at ChildProcess.emit (events.js:213:7)
13 verbose stack     at maybeClose (internal/child_process.js:887:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
14 verbose pkgid qiyujidemo@0.1.0
15 verbose cwd /Users/yianwork/wechat/qiyujidemo
16 verbose Darwin 16.4.0
17 verbose argv "/usr/local/Cellar/node/8.1.0_1/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v8.1.0
19 verbose npm  v5.0.3
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error qiyujidemo@0.1.0 start: `react-scripts start`
24 error spawn ENOENT
25 error Failed at the qiyujidemo@0.1.0 start script.
25 error This is probably not a problem with npm. There is likely additional logging output above.
26 verbose exit [ 1, true ]

      

I am typing yarn start

, the error message is:

yians-iMac: start qiyujidemo yianwork $

start yarn v0.24.5
$ react-scripts start
sh: response-scripts: command not found
Error Command with exit code 127.

Who can solve this problem? What's wrong?

I am creating a new project using create-react-app. It works well. Then I install npm install --save react-router and the same problem. I run npm uninstall weui react-weui - keeps it still not working

I write yarn add antd

in a demo create-react-app

, the project works well.
Should I use yarn to add dependency?

+3


source to share





All Articles