Code Monkey home page Code Monkey logo

Comments (9)

oliviertassinari avatar oliviertassinari commented on May 22, 2024 3

I use the following fix for now in the package on userspace.

package.json

  "postinstall": "cd node_modules/wordpos && yarn postinstall"`

from wordpos.

oliviertassinari avatar oliviertassinari commented on May 22, 2024

However, we lose ~1s for each yarn interaction, not great

from wordpos.

buildbreakdo avatar buildbreakdo commented on May 22, 2024

Hmm.. ran into this too. After running your script seeing ENOENT: no such file or directory, scandir '/dict'.

from wordpos.

maxmatthews avatar maxmatthews commented on May 22, 2024

Any movement on this? Still having this issue and yarn only seems to be growing in popularity. The postinstall fix is a fine temp one, but is definitely a performance hit.

from wordpos.

moos avatar moos commented on May 22, 2024

I can't reproduce with latest yarn:

~/dev/tmp/wordpos-yarn-test$ yarn
yarn install v1.9.4
(node:81202) ExperimentalWarning: The fs.promises API is experimental
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 5.50s.

~/dev/tmp/wordpos-yarn-test$ ls node_modules/wordnet-db/dict/
data.adj             data.verb            fast-index.noun.json index.adv            index.verb
data.adv             fast-index.adj.json  fast-index.verb.json index.noun
data.noun            fast-index.adv.json  index.adj            index.sense

Please try updating yarn.

from wordpos.

oliviertassinari avatar oliviertassinari commented on May 22, 2024

@moos Did you run yarn twice?

from wordpos.

moos avatar moos commented on May 22, 2024

Yes -- I did. I was able to repro with earlier version of yarn, but not with latest.

from wordpos.

maxmatthews avatar maxmatthews commented on May 22, 2024

~~Can confirm that this is fixed in yarn>1.9.4. Thanks for checking this @moos

from wordpos.

maxmatthews avatar maxmatthews commented on May 22, 2024

Take it back. Just added a package and got a no such file or directory /node_modules/wordnet-db/dict/fast-index.noun.json'. Adding back the post install line got me back up and running

from wordpos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.