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

Install echarts using github link #13091

Closed
sgurin opened this issue Aug 6, 2020 · 9 comments
Closed

Install echarts using github link #13091

sgurin opened this issue Aug 6, 2020 · 9 comments
Labels
en This issue is in English support

Comments

@sgurin
Copy link

sgurin commented Aug 6, 2020

Version

4.8.0

Steps to reproduce

I was trying to install echarts using GitHub link https://github.com/apache/incubator-echarts#4.8.0 and there is no any lib folder. Also, missing main directive for NPM.

What is expected?

Ok

What is actually happening?

ERROR Failed to compile with 49 errors
These relative modules were not found:

./lib/chart/bar in ./node_modules/echarts/index.js
./lib/chart/boxplot in ./node_modules/echarts/index.js
./lib/chart/candlestick in ./node_modules/echarts/index.js
./lib/chart/custom in ./node_modules/echarts/index.js
./lib/chart/effectScatter in ./node_modules/echarts/index.js
./lib/chart/funnel in ./node_modules/echarts/index.js
./lib/chart/gauge in ./node_modules/echarts/index.js
./lib/chart/graph in ./node_modules/echarts/index.js


If package was downloaded via NPM it has lib folder. Unfortunately I cannot use NPM. What I am doing wrong?

@echarts-bot
Copy link

echarts-bot bot commented Aug 6, 2020

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Aug 6, 2020
@HHHui
Copy link

HHHui commented Aug 6, 2020

npm install echarts --save
maybe you can check the tutorial.

@sgurin
Copy link
Author

sgurin commented Aug 6, 2020

Unfortunately I cannot use NPM Package. Is there any way to install plugin thrown link? For example npm install https://github.com/apache/incubator-echarts#4.8.0

@HHHui
Copy link

HHHui commented Aug 6, 2020

maybe just use dist/echarts.min.js or use cdn https://cdnjs.cloudflare.com/ajax/libs/echarts/4.8.0/echarts.min.js ?

@sgurin
Copy link
Author

sgurin commented Aug 6, 2020

So, there is no way to install echarts via NPM by direct link to the GitHub repo?

npm install https://github.com/apache/incubator-echarts#4.8.0

@plainheart
Copy link
Member

@sgurin It can be installed as follows.

npm install https://github.com/apache/incubator-echarts.git#4.8.0

@plainheart plainheart added support waiting-for: author and removed bug pending We are not sure about whether this is a bug/new feature. labels Aug 7, 2020
@sgurin
Copy link
Author

sgurin commented Aug 7, 2020

Ok. Why the packages are different?

There is lib folder if I install echarts npm install echarts https://prnt.sc/tvhazs but via GitHub link it is not there https://prnt.sc/tvhbiz

@plainheart
Copy link
Member

plainheart commented Aug 7, 2020

The lib folder is generated after building.
Installing from Github link is just to clone the repository without a release building, so this is different from NPM.
But you are still able to run the release command in the root of echarts to generate the lib folder.

npm run release

Hope that helps.

@sgurin
Copy link
Author

sgurin commented Aug 7, 2020

Yeap, That exactly what I asked for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English support
Projects
None yet
Development

No branches or pull requests

3 participants