Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install folktale 2.0.0 on ubuntu based linux #152

Open
StefanYohansson opened this issue Aug 9, 2017 · 5 comments
Open

Cannot install folktale 2.0.0 on ubuntu based linux #152

StefanYohansson opened this issue Aug 9, 2017 · 5 comments

Comments

@StefanYohansson
Copy link

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 StefanYohansson changed the title Cannot install folktale 2.0.0 Cannot install folktale 2.0.0 on ubuntu based linux Aug 9, 2017
@StefanYohansson
Copy link
Author

StefanYohansson commented Aug 9, 2017

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
Copy link
Member

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
Copy link
Author

Thanks @robotlolita

robotlolita added a commit that referenced this issue Aug 9, 2017
This patch veresion removes the docs from the package as a temporary workaround for #152
@robotlolita
Copy link
Member

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

@StefanYohansson
Copy link
Author

yay, it works! 😄 @robotlolita

Thanks. 💟

@robotlolita robotlolita added this to the 3.0.0 milestone Dec 17, 2017
@robotlolita robotlolita modified the milestones: 4.0.0, Doc fixes Jul 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants