Closed fritzy closed 7 years ago
Hi,
I just published a fresh npm update. Please let me know if this stuff works for you, as npm is still not the main way of distributing rot.js :)
I tried it but whenever I do require('rot-js')
node says it cannot find the module.
I tried it but whenever I do require('rot-js') node says it cannot find the module.
You have to install the module first. Try npm install rot-js --save
in your project's directory.
@ondras I guess I did not installed it correctly. Today I seem to have 0.6.1 working. Sorry.
If I install 0.6.1, I get an empty module as well. I noticed my builds started breaking and I could not figure out why. Have to revert to 0.6.0 to be able to use ROT.
I am not entirely sure what went wrong with 0.6.1. Please try npm updating to 0.6.2, this version works for me.
The documentation says I should be able to forceSquareRatio, which doesn't work from the npm release, but does for the rot.min.js download. I'd rather be able to rely on my my package.json file for managing libraries. Would you like help keeping this up to date?