mozilla / openbadges-bakery

An OpenBadges image baking library that works with PNGs and SVGs
Mozilla Public License 2.0
22 stars 38 forks source link

Errors when running "npm run test" #13

Open ihorfito opened 7 years ago

ihorfito commented 7 years ago
npm ERR! Darwin 16.6.0
npm ERR! argv "/.nvm/versions/node/v6.10.1/bin/node" ".nvm/versions/node/v6.10.1/bin/npm" "run" "test"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! openbadges-bakery@1.0.5 test: `tap test/*.js`
npm ERR! Exit status 3
ok test/stream-type-check.test.js ....................... 8/8
ok test/svg.test.js ................................... 15/15
total ................................................. 25/28

not ok

TypeError: Method get TypedArray.prototype.length called on incompatible receiver [object Object]

auralon commented 7 years ago

Could you try running the tests on node version 0.10.30

I don't think the package has been updated to support any version of node beyond that.

auralon commented 7 years ago

You can managed multiple versions of node on a single system using n - https://github.com/tj/n

Idefixus commented 6 years ago

The problem occures when trying to bake a png. Svg works fine. When using the recommended project to work with the older node version it works fine again.