yingwang2 edited a comment on issue #10638: npm install error after cloning 
incubator-echarts by git
URL: 
https://github.com/apache/incubator-echarts/issues/10638#issuecomment-500278365
 
 
   > Did you have `zrender` installed at the same directory with 
`incubator-echarts`?
   
   Thanks. I'm not sure what do you mean by "the same directory".
   
   I followed the instruction in this file, 
https://github.com/apache/incubator-echarts/blob/master/.github/CONTRIBUTING.md.
 It indicates that we should install the zrender outside the echarts directory. 
Specifically, by following the instruction below can lead to this error. 
   ```
   cd ~/workspace/echarts
   npm install
   cd ~/workspace/zrender
   npm install
   --> the same error
   ```
   Also, the error also occurs by running:
   ```
   cd ~/workspace/zrender
   npm install
   cd ~/workspace/echarts
   npm install
   --> the same error
   ```
   However, Running "npm install zrender" first **in the directory** 
"~/workspace/echarts" can fix the error.
   ```
   cd ~/workspace/echarts
   npm install zrender
   npm install
   --> no error
   ```
   Running "npm install zrender" first **in the directory** 
"~/incubator-echarts/" and then "npm install" in the same directory can fix the 
error.
   
   Maybe updating this file would help.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to