Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行build时报错 #69

Closed
xuetaohe opened this issue Sep 21, 2018 · 8 comments
Closed

执行build时报错 #69

xuetaohe opened this issue Sep 21, 2018 · 8 comments

Comments

@xuetaohe
Copy link

13 verbose stack Error: gg-editor@1.2.0 build: NODE_ENV=production node --max_old_space_size=8192 ./node_modules/webpack/bin/webpack --config ./tools/webpack.config.prod.js --colors --profile --optimize-minimize
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (D:\Programs\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285: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. (D:\Programs\nodejs\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:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid gg-editor@1.2.0
15 verbose cwd D:\Projects\react\gg-editor
16 verbose Windows_NT 10.0.17134
17 verbose argv "D:\Programs\nodejs\node.exe" "D:\Programs\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build" "--scripts-prepend-node-path=auto"
18 verbose node v8.11.1
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error gg-editor@1.2.0 build: NODE_ENV=production node --max_old_space_size=8192 ./node_modules/webpack/bin/webpack --config ./tools/webpack.config.prod.js --colors --profile --optimize-minimize
22 error Exit status 1
23 error Failed at the gg-editor@1.2.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

@gaoli
Copy link
Collaborator

gaoli commented Sep 21, 2018

@xuetaohe 为什么需要执行 build 命令?

@gaoli gaoli closed this as completed Sep 26, 2018
@xuetaohe
Copy link
Author

xuetaohe commented Sep 26, 2018

@gaoli 我如果想修改gg-editor或editor demo,需要编译出修改后的文件才能应用到实际项目

@gaoli gaoli reopened this Sep 26, 2018
@gaoli
Copy link
Collaborator

gaoli commented Sep 26, 2018

@xuetaohe 请提供下系统环境参数吧:)

@tennisonchan
Copy link
Contributor

@xuetaohe 请问你改了什么?这个报错跟node/npm有关。你的node version 是什么?

@xuetaohe
Copy link
Author

@gaoli 我其实是尝试性的修改,想尝试添加一些自己需要的功能,比如:查看和保存流程图数据的功能。
我的npm版本:6.4.1 (windows系统)

@gaoli
Copy link
Collaborator

gaoli commented Sep 26, 2018

@xuetaohe 最新的版本中已经包含数据读取与保存的 API

@xuetaohe
Copy link
Author

@tennisonchan 我尝试加了点自己个性化的东西,就是尝试
我的node version是v8.11.1,
我的npm verison是6.4.1

@gaoli
Copy link
Collaborator

gaoli commented Oct 9, 2018

@xuetaohe

我们无法重现你的构建问题 Orz ...

读取保存数据可以通过参照 Props API,有其它的功能需求也可以提 Issues

@gaoli gaoli closed this as completed Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants