Closed codingmatty closed 8 years ago
Looks like you aren't compatible with older versions of node..
Executing node --harmony /usr/local/lib/node_modules/fontello-cli --help
yields no output.
It looks like hapijs/qs are planning to support only Node v4 and above (see hapijs/qs#124), hence this issue. I too faced the same issue on my Node v0.12.7 installation. In my case, upgrading to Node v4.2.2 LTS helped resolve it.
+1
Noticed the same with qs yesterday. My app isn't yet Node v4 compatible and I don't have time for it right now, so I just switched for https://www.npmjs.com/package/gulp-fontello instead. :P
If upgrading to Node v4+ is not possible, then a temporary workaround can be made by shrinkwrap-ing qs and locking down its version to v5.2.0.
Committing an npm-shrinkwrap.json
file into your repo with the following contents would do the trick:
{
"name": "your-project-name",
"dependencies": {
"qs": {
"version": "5.2.0",
"from": "qs@v5.2.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-5.2.0.tgz"
}
}
}
After adding the above file, run npm install
as usual. npm will install qs v5.2.0.
Sorry, everyone, for the lack of response here.
I'm not totally clear on the best way forward here but if there's a strong consensus I'll try to make that happen.
I personally just upgraded node and it works fine.
After installing from npm, the following makes fontello-cli unusable: