origamitower / folktale

[not actively maintained!] A standard library for functional programming in JavaScript
https://folktale.origamitower.com/
MIT License
2.04k stars 102 forks source link

Cannot install folktale 2.0.0 on ubuntu based linux #152

Open StefanYohansson opened 7 years ago

StefanYohansson commented 7 years ago

Trying to install "folktale": "2.0.0" and receiving ENAMETOOLONG.

Steps to reproduce

added "folktale": "2.0.0" on package.json and run yarn install or run yarn add folktale, both fail.

Expected behaviour

Install the library

Observed behaviour

error An unexpected error occurred: "https://registry.yarnpkg.com/folktale/-/folktale-2.0.0.tgz: ENAMETOOLONG: name too long, open '/home/snotr/.cache/yarn/v1/npm-folktale-2.0.0-9f4a6851521be331c8d2703655f7427a0a324126/docs/api/master/en/-unknown-module-.folktale.concurrency.future._executionstate.variants.0.prototype.cancelled.prototype.rejected.prototype.resolved.constructor.html'".

Environment

OS: Ubuntu 16.04 (Kde Neon) Node version: v8.2.1 npm: 5.3.0 yarn: v0.27.5 Folktale: 2.0.0

StefanYohansson commented 7 years ago

I'm receiving errors when clone the project too:

error: unable to create file docs/api/v2.0.0/en/-unknown-module-.folktale.concurrency.future._executionstate.variants.0.prototype.cancelled.prototype.rejected.prototype.resolved.constructor.html (File name too long)
error: unable to create file docs/api/v2.0.0/en/-unknown-module-.folktale.concurrency.future._executionstate.variants.0.prototype.cancelled.prototype.rejected.prototype.resolved.hasinstance.html (File name too long)
error: unable to create file docs/api/v2.0.0/en/-unknown-module-.folktale.concurrency.future._executionstate.variants.0.prototype.cancelled.prototype.rejected.prototype.resolved.prototype.equals.html (File name too long)
error: unable to create file docs/api/v2.0.0/en/-unknown-module-.folktale.concurrency.future._executionstate.variants.0.prototype.cancelled.prototype.rejected.prototype.resolved.prototype.inspect.html (File name too long)
error: unable to create file docs/api/v2.0.0/en/-unknown-module-.folktale.concurrency.future._executionstate.variants.0.prototype.cancelled.prototype.rejected.prototype.resolved.prototype.isresolved.html (File name too long)
error: unable to create file docs/api/v2.0.0/en/-unknown-module-.folktale.concurrency.future._executionstate.variants.0.prototype.cancelled.prototype.rejected.prototype.resolved.prototype.matchwith.html (File name too long)

btw, I think it's useless to keep docs folder in node_modules, folktale can use .npmignore to prevent download entire docs folder for every install.

example: https://github.com/StefanYohansson/react-video-preview/blob/master/.npmignore

robotlolita commented 7 years ago

Ah, we did use to not include the documentation in the npm package, but it includes the source and docs now so people can have access to the docs while offline. Fixing this properly involves fixing the documentation tool to generate more reasonable structures, so that's a bit difficult.

I'll try publishing a package without docs for now later today. It involves a bit more of work than just changing the .npmignore file.

StefanYohansson commented 7 years ago

Thanks @robotlolita

robotlolita commented 7 years ago

Can you try installing folktale@2.0.1 and see if it works for you?

StefanYohansson commented 7 years ago

yay, it works! 😄 @robotlolita

Thanks. 💟