Closed catseye closed 11 years ago
OK, I found http://pratphall.org/#Manual-Appendices-Building (it would be nice[r] to have this in the README, imo)
But trying that method gives me
$ npm install
npm ERR! Couldn't read dependencies.
npm ERR! Failed to parse json
npm ERR! Unexpected token
npm ERR! File: .../cretz/pratphall/package.json
(etc)
Did you "npm install" in the directory you cloned the git repo?
Yes. Just did it again now to confirm.
What version is your node? I literally ran these commands and it worked just fine:
~$ git clone --recursive https://github.com/cretz/pratphall.git
~$ cd pratphall/
pratphall$ npm install
pratphall$ node_modules/.bin/jake build
And it works on Windows too. Can you give me the full output from running those 4 commands in order?
node.js v0.6.12 -- that's possibly why, since the package.json
wants 0.8.
I'll have to install 0.8 from source, since this is apparently the latest version available in my package system (Ubuntu 12.04 LTS).
Still, it's odd that some tools think it's well-formed JSON while others don't; I also tried
$ python -mjson.tool <package.json
No JSON object could be decoded
...but pasting it into http://json.parser.online.fr/ , it parsed fine.
Yeah, you really need the latest nodejs.
I'm not too familiar with the node.js/npm ecosystem, so bear with me. It would be nice if these dependencies/steps could be documented.
I already had
node.js
andnpm
installed. Clearlypratphall
requiresjake
, do I didThen apparently, it requires
fs-extra
, so I did (in thepratphall
directory)And got 0.5.0. Then, apparent that it also requires
typescript
, I didAnd got 0.8.0. But then I run into an error:
Seems to be inside typescript; does it require typescript >0.8.0?