Comments (6)
Thanks for reporting, John!
Seems like something funky is happening when trying to read ~/.config/codewars/setup.json
, so could you please check the output of
cat ~/.config/codewars/setup.json
from codewars.
Hrvoje, thanks for getting back to me. On my box, there is no ~/.config/codewars/setup.json
.
~/.config/codewars/
is empty except for one directory, ~/.config/codewars/challenges
, which is empty.
Just now, I ran codewars setup --token myToken
again. On node 4.1.1
, it output the same error message pictured above. On node 0.12.7
, it output a slightly different error:
Let me know if I can help you debug anything. I'm still relatively new to node & JS generally, but I know enough to get my hands dirty.
Thanks.
from codewars.
Ah, here's something. In index.js
, line 17, there's no if(fs.exists())
check on ~/.config/codewars/settings.json
.
if (fs.existsSync(C.paths.settings)){
[No check here for settings.json]
fs.readFile(C.paths.settings + "settings.json", {encoding: "utf-8"},
from codewars.
Based on your code, I manually created a setup.json
:
{
"token": "REDACTED",
"language": "javascript",
"strategy": "default"
}
I still get the same error as in my first comment, despite adding the file.
from codewars.
I've just published the new version that fixes the checks. Still not sure what's causing this... What OS are you using?
Could you please
npm install -g codewars-client && rm -ri ~/.config/codewars
Let me know if that helps! Thanks.
from codewars.
Great! That fixed it. Thanks for your help.
I'm using OS X Yosemite 10.10.5, which uses Darwin Kernel 14.5.0.
from codewars.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codewars.