最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

我不能部署在github反应

运维笔记admin9浏览0评论

我不能部署在github反应

我不能部署在github反应

我是新来反应。我创建了一些应用程序作为一个应用程序,但我仍然有问题,当我试图上传我的Github上的应用程序。运行时,主要问题

npm run build or npm run deploy

我一直有这样的消息:

NPM ERR!代码ELIFECYCLE NPM ERR!错误号1个NPM ERR! [email protected]编译:react-scripts build NPM ERR!退出状态1个NPM ERR! NPM ERR!在[email protected]构建脚本失败。 NPM ERR!这可能不是与NPM问题。上面还有可能额外日志输出。

NPM ERR!此运行的完整的日志可以发现:NPM ERR! C:\用户\开发 - 艾哈迈德 - Elbessfy \应用程序数据\漫游\ NPM-cache_logs \ 2019-02-07T16_26_38_090Z德bug.log NPM ERR!代码ELIFECYCLE NPM ERR!错误号1个NPM ERR! [email protected]预先部署:npm run build NPM ERR!退出状态1个NPM ERR! NPM ERR!在[email protected]预先部署脚本失败。 NPM ERR!这可能不是与NPM问题。上面还有可能额外日志输出。

NPM ERR!此运行的完整的日志可以发现:NPM ERR! C:\ Users \用户开发 - 艾哈迈德 - Elbessfy \应用程序数据\漫游\ NPM-cache_logs \ 2019-02-07T16_26_38_137Z-的debug.log

任何人都可以帮助吗?我还上传了Github上回购这里所有的项目文件:

更新: 文件中提及的内容

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'deploy' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predeploy', 'deploy', 'postdeploy' ]
5 info lifecycle [email protected]~predeploy: [email protected]
6 verbose lifecycle [email protected]~predeploy: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]~predeploy: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;E:\Web Design\React\applications\random-qoute-generator\node_modules\.bin;C:\Users\Dev-Ahmed-Elbessfy\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Dev-Ahmed-Elbessfy\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\nodejs;C:\Program Files\Microsoft VS Code\bin;C:\Users\Dev-Ahmed-Elbessfy\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
8 verbose lifecycle [email protected]~predeploy: CWD: E:\Web Design\React\applications\random-qoute-generator
9 silly lifecycle [email protected]~predeploy: Args: [ '/d /s /c', 'npm run build' ]
10 silly lifecycle [email protected]~predeploy: Returned: code: 1  signal: null
11 info lifecycle [email protected]~predeploy: Failed to exec predeploy script
12 verbose stack Error: [email protected] predeploy: `npm run build`
12 verbose stack Exit status 1
12 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
12 verbose stack     at emitTwo (events.js:126:13)
12 verbose stack     at EventEmitter.emit (events.js:214:7)
12 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
12 verbose stack     at emitTwo (events.js:126:13)
12 verbose stack     at ChildProcess.emit (events.js:214:7)
12 verbose stack     at maybeClose (internal/child_process.js:925:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
13 verbose pkgid [email protected]
14 verbose cwd E:\Web Design\React\applications\random-qoute-generator
15 verbose Windows_NT 6.2.9200
16 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "deploy"
17 verbose node v8.11.1
18 verbose npm  v5.6.0
19 error code ELIFECYCLE
20 error errno 1
21 error [email protected] predeploy: `npm run build`
21 error Exit status 1
22 error Failed at the [email protected] predeploy script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
23 verbose exit [ 1, true ]
回答如下:

如果您添加依赖“更简洁”,将工作

npm install terser

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论