device-specs.json required in ~/.spark
Closed this issue · 1 comments
m-mcgowan commented
Running spark.sh --version
gives
mbp:.spark mat1$ spark.sh --version
Error loading command /Users/mat1/dev/spark/spark-cli/commands/FlashCommand.js Error: ENOENT, no such file or directory '/Users/mat1/.spark/device-specs.json'
Error loading command /Users/mat1/dev/spark/spark-cli/commands/KeyCommands.js Error: ENOENT, no such file or directory '/Users/mat1/.spark/device-specs.json'
Error loading command /Users/mat1/dev/spark/spark-cli/commands/SetupCommand.js Error: ENOENT, no such file or directory '/Users/mat1/.spark/device-specs.json'
1.3.0
Looks like https://github.com/spark/spark-cli/blob/master/lib/deviceSpecs/index.js#L3-L10, the file '~/.spark/device-specs.json` is needed for the cli to startup correctly.
The workaround is to create that file with the contents
{}
Tested with commit 970383a
KarbonDallas commented
@m-mcgowan thanks for catching this!
Fixed here: 8b3a6ed