当我使用npm启动react时,wpstart for Wordpress Theme是第一次完美启动,但是第二次当我再次启动它运行主题时,它将始终抛出这种错误。我已经对我的项目文件夹拥有完全许可。
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'start' ]
2 info using npm@6.4.1
3 info using node@v8.15.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle wpproject@0.1.0~prestart: wpproject@0.1.0
6 info lifecycle wpproject@0.1.0~start: wpproject@0.1.0
7 verbose lifecycle wpproject@0.1.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle wpproject@0.1.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/var/www/html/projectname/wp-content/themes/wpproject/react-src/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
9 verbose lifecycle wpproject@0.1.0~start: CWD: /var/www/html/projectname/wp-content/themes/wpproject/react-src
10 silly lifecycle wpproject@0.1.0~start: Args: [ '-c', 'wptheme-scripts start' ]
11 silly lifecycle wpproject@0.1.0~start: Returned: code: 1 signal: null
12 info lifecycle wpproject@0.1.0~start: Failed to exec start script
13 verbose stack Error: wpproject@0.1.0 start: `wptheme-scripts start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:915:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid wpproject@0.1.0
15 verbose cwd /var/www/html/projectname/wp-content/themes/wpproject/react-src
16 verbose Linux 4.15.0-45-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "start"
18 verbose node v8.15.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error wpproject@0.1.0 start: `wptheme-scripts start`
22 error Exit status 1
23 error Failed at the wpproject@0.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
答案 0 :(得分:0)
错误EADDRINUSE ::: 8090表示您试图运行项目的端口正在使用中,为避免此错误,您可以终止在端口上运行的进程并运行项目。