Coder Social home page Coder Social logo

BUG | Unable to start with npm about plasmo HOT 3 CLOSED

plasmohq avatar plasmohq commented on May 19, 2024
BUG | Unable to start with npm

from plasmo.

Comments (3)

ColdSauce avatar ColdSauce commented on May 19, 2024 1

I'm going to close this issue for now, but please let me know if you think my assessment of the situation is incorrect, or if you have an up-to-date version of the graceful-fs package.

We'll think more about how to detect these npm cache issues on our side, but they might be outside Plasmo's scope.

from plasmo.

peterbe avatar peterbe commented on May 19, 2024

Switching to pnpm dlx plasmo init worked.

from plasmo.

ColdSauce avatar ColdSauce commented on May 19, 2024

Thanks for the bug report, @peterbe.

npm x plasmo init works both in our CI environment and locally on my laptop, so I suspect there is some weird cache issue happening here.

It seems to be an issue with the graceful-fs package that was fixed a while ago. We use this package because fs-extra depends on it:

λ ~/plasmo/plasmo/ main pnpm why graceful-fs
Legend: production dependency, optional only, dev only

p1asm0 /Users/coldsauce/plasmo/plasmo

devDependencies:
fs-extra 10.1.0
├── graceful-fs 4.2.10
└─┬ jsonfile 6.1.0
  └── graceful-fs 4.2.10

I suspect the problem is that your cached version of graceful-fs seems to be very old, and that's what's being used by npm x for some reason.

If you run

cat /usr/local/lib/node_modules/pnpm/lib/node_modules/npm/node_modules/graceful-fs/package.json | grep version

What version number does it show?

from plasmo.

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.