CODAP › Forums › CODAP Help Forum › jshint error:can't open *.json
Tagged: jshint
- This topic has 2 replies, 2 voices, and was last updated 6 years, 10 months ago by Jonathan Sandoe.
-
AuthorPosts
-
Max HsuParticipant
I follow CODAP Developer Guide to set up development environment. After run code below,
- npm run build:bundle
it echoes words like this:
- eslint *.js apps && jshint -e .json *.json apps –verbose
- ERROR: Can’t open *.json
Could you tell me why and how to fix it?
January 18, 2018 at 5:17 pm #440Jonathan SandoeKeymasterHello Max,
<div style=”color: #222222; font-family: arial, sans-serif; font-size: 12.8px;”>I am sorry you are having difficulty installing the CODAP development environment on your computer. Its a little difficult for me to understand what may have caused this failure. Had you run “npm install” prior to running “npm run build:bundle”. The install instructions recommend installing cygwin or a shell with similar functionality on Windows systems. This may help. Also, you may wish to try running “yarn” instead of “npm install” since it is more precise on versioning. To install “yarn”, run “npm install -g yarn”.</div>
<div style=”color: #222222; font-family: arial, sans-serif; font-size: 12.8px;”></div>
<div style=”color: #222222; font-family: arial, sans-serif; font-size: 12.8px;”>We do not see the issue you are seeing when we execute the install procedure on our Windows machines, here. What version of Windows are you using?</div>
<div style=”color: #222222; font-family: arial, sans-serif; font-size: 12.8px;”></div>
<div style=”color: #222222; font-family: arial, sans-serif; font-size: 12.8px;”>I am interested what type of development work you are contemplating involving CODAP. Many interesting things can be done by writing a CODAP plugin. You can integrate new data sources or create new data visualizations this way. Developing a plugin does not require setting up a full CODAP development environment. You can download the current version of CODAP from https://codap.concord.org/<wbr />releases/zips and install it on a local web server. Documents on the CODAP wiki (https://github.com/concord-<wbr />consortium/codap/wiki) can help you get started. In particular, the API document (https://github.com/concord-<wbr />consortium/codap/wiki/CODAP-<wbr />Data-Interactive-Plugin-API) and this tutorial: https://github.com/<wbr />concord-consortium/codap/wiki/<wbr />Getting-Started-With-CODAP-<wbr />Plugins.</div>
<div style=”color: #222222; font-family: arial, sans-serif; font-size: 12.8px;”></div>
<div style=”color: #222222; font-family: arial, sans-serif; font-size: 12.8px;”>Thanks for your interest.</div>
<div class=”yj6qo ajU” style=”cursor: pointer; outline: none; padding: 10px 0px; width: 22px; margin: 2px 0px 0px; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;”></div>January 18, 2018 at 5:38 pm #441Jonathan SandoeKeymaster(my previous post came out somewhat garbled for some reason. What follows is a cleaned up version.)
I am sorry you are having difficulty installing the CODAP development environment on your computer. Its a little difficult for me to understand what may have caused this failure. Had you run “npm install” prior to running “npm run build:bundle”. The install instructions recommend installing cygwin or a shell with similar functionality on Windows systems. This may help. Also, you may wish to try running “yarn” instead of “npm install” since it is more precise on versioning. To install “yarn”, run “npm install -g yarn”.
We do not see the issue you are seeing when we execute the install procedure on our Windows machines, here. What version of Windows are you using?
I am interested what type of development work you are contemplating involving CODAP. Many interesting things can be done by writing a CODAP plugin. You can integrate new data sources or create new data visualizations this way. Developing a plugin does not require setting up a full CODAP development environment. You can download the current version of CODAP from https://codap.concord.org/releases/zips and install it on a local web server. Documents on the CODAP wiki (https://github.com/concord-consortium/codap/wiki) can help you get started. In particular, the API document (https://github.com/concord-consortium/codap/wiki/CODAP-Data-Interactive-Plugin-API) and this tutorial: https://github.com/concord-consortium/codap/wiki/Getting-Started-With-CODAP-Plugins.
Thanks for your interest.
-
AuthorPosts
- The forum ‘CODAP Help Forum’ is closed to new topics and replies.