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

npm install throw error #9774

Closed
6 tasks
fuyongxia opened this issue Jan 17, 2019 · 3 comments
Closed
6 tasks

npm install throw error #9774

fuyongxia opened this issue Jan 17, 2019 · 3 comments
Assignees

Comments

@fuyongxia
Copy link

General Questions

Issue Type

  • I have a question to ask about how to use ECharts to ...;我想提问如何使用 ECharts 实现某功能
  • [x ] I have a bug to report;我想要报 bug
  • I have a feature to request, e.g.: I'd like a new feature that ...;我需要一个新功能
  • I have a feature to enhance, e.g.: The current feature should be improved in the way that ...;我希望改进某个功能
  • There's something wrong with the documents;文档有些问题
  • Others, or I'm not sure which issue types to choose here;其他,或我不知道应该选什么类型

Issue Details

拷贝下代码,npm install后出现问题

Expected Behavior

Current Behavior

npm install
E:\work-space\incubator-echarts-master\node_modules@babel\template\lib\builder.
js:86
throw err;
^

Error: No substitution given for "Z2_EMPHASIS_LIFT"
at E:\work-space\incubator-echarts-master\node_modules@babel\template\lib\p
opulate.js:16:15
at Array.forEach ()
at populatePlaceholders (E:\work-space\incubator-echarts-master\node_modules
@babel\template\lib\populate.js:14:27)
at E:\work-space\incubator-echarts-master\node_modules@babel\template\lib\s
tring.js:20:51
at E:\work-space\incubator-echarts-master\node_modules@babel\template\lib\b
uilder.js:83:14
at buildExport (E:\work-space\incubator-echarts-master\node_modules\zrender
build\babel-plugin-transform-modules-commonjs-ec.js:658:6)
at buildLocalExportStatements (E:\work-space\incubator-echarts-master\node_m
odules\zrender\build\babel-plugin-transform-modules-commonjs-ec.js:623:24)
at PluginPass.exit (E:\work-space\incubator-echarts-master\node_modules\zren
der\build\babel-plugin-transform-modules-commonjs-ec.js:49:35)
at newFn (E:\work-space\incubator-echarts-master\node_modules@babel\travers
e\lib\visitors.js:223:21)
at NodePath._call (E:\work-space\incubator-echarts-master\node_modules@babe
l\traverse\lib\path\context.js:64:19)
=============
at buildExport (E:\work-space\incubator-echarts-master\node_modules\zrender
build\babel-plugin-transform-modules-commonjs-ec.js:654:26)
at buildLocalExportStatements (E:\work-space\incubator-echarts-master\node_m
odules\zrender\build\babel-plugin-transform-modules-commonjs-ec.js:623:24)
at PluginPass.exit (E:\work-space\incubator-echarts-master\node_modules\zren
der\build\babel-plugin-transform-modules-commonjs-ec.js:49:35)
at newFn (E:\work-space\incubator-echarts-master\node_modules@babel\travers
e\lib\visitors.js:223:21)
at NodePath.call (E:\work-space\incubator-echarts-master\node_modules@babe
l\traverse\lib\path\context.js:64:19)
at NodePath.call (E:\work-space\incubator-echarts-master\node_modules@babel
\traverse\lib\path\context.js:38:17)
at NodePath.visit (E:\work-space\incubator-echarts-master\node_modules@babe
l\traverse\lib\path\context.js:104:8)
at TraversalContext.visitQueue (E:\work-space\incubator-echarts-master\node

modules@babel\traverse\lib\context.js:139:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! echarts@4.2.0-rc.2 prepublish: node build/build.js --prepublish
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the echarts@4.2.0-rc.2 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-01-17T0
3_16_19_822Z-debug.log

Online Example

Topics

Anything Else We Need to Know

Environment

  • ECharts version;ECharts 版本: {v4.2.0-rc.2}

  • It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}

@deqingli deqingli added the pending We are not sure about whether this is a bug/new feature. label Jan 17, 2019
@100pah
Copy link
Member

100pah commented Jan 17, 2019

Fixed in ecomfe/zrender@c6aac2a

@100pah 100pah added bug and removed pending We are not sure about whether this is a bug/new feature. labels Jan 17, 2019
@100pah 100pah closed this as completed Jan 17, 2019
@awab-xg
Copy link

awab-xg commented Jan 26, 2019

"zrender": "^4.0.5" --> "zrender": "^4.0.6"

@ClemMakesApps
Copy link
Contributor

Thanks for mentioning the fix here. This does not seem to be fixed in master. Can we reopen and close it with a PR?

ClemMakesApps added a commit to ClemMakesApps/incubator-echarts that referenced this issue Jan 28, 2019
zrender 4.0.5 causes a npm install error.
This version upgrade fixes apache#9774
This was referenced Jan 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants