folktale icon indicating copy to clipboard operation
folktale copied to clipboard

Cannot install folktale 2.0.0 on ubuntu based linux

Open StefanYohansson opened this issue 8 years ago • 5 comments
trafficstars

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 avatar Aug 09 '17 13:08 StefanYohansson

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

StefanYohansson avatar Aug 09 '17 13:08 StefanYohansson

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.

robotlolita avatar Aug 09 '17 14:08 robotlolita

Thanks @robotlolita

StefanYohansson avatar Aug 09 '17 14:08 StefanYohansson

Can you try installing [email protected] and see if it works for you?

robotlolita avatar Aug 09 '17 23:08 robotlolita

yay, it works! 😄 @robotlolita

Thanks. 💟

StefanYohansson avatar Aug 10 '17 10:08 StefanYohansson