Closed sgurin closed 4 years ago
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! 🍵
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
maybe just use dist/echarts.min.js or use cdn https://cdnjs.cloudflare.com/ajax/libs/echarts/4.8.0/echarts.min.js ?
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
@sgurin It can be installed as follows.
npm install https://github.com/apache/incubator-echarts.git#4.8.0
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
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.
Yeap, That exactly what I asked for.
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?