Giter Club home page Giter Club logo

Comments (5)

BnitoBzh avatar BnitoBzh commented on June 12, 2024 2

Same issue.

  • contentful-cli 3.1.44
  • node: 18.19.1
  • npm: 10.2.4

The import is invalid in file lib/utils/github.js at line 7.

const mkdirp = require('mkdirp')

Must be : const { mkdirp } = require('mkdirp') instead of const mkdirp = require('mkdirp')

from contentful-cli.

0xAnthony avatar 0xAnthony commented on June 12, 2024 2

Hello, issue was resolved in #2640

Thanks @BnitoBzh for bringing the solution in your comment.

from contentful-cli.

jjolton-contentful avatar jjolton-contentful commented on June 12, 2024 1

^ +1 thanks all for reporting this, thanks @BnitoBzh for your keen eye and thank you again for contributing the fix @0xAnthony! I'll go ahead and close this issue now.

from contentful-cli.

Holay avatar Holay commented on June 12, 2024

Is there a fix for this yet?

from contentful-cli.

gwest4 avatar gwest4 commented on June 12, 2024

I've just run into this as well.

TypeError: mkdirp is not a function                                                                                                                                                                                                                                                         
││     at C:\Users\gwest\AppData\Roaming\nvm\v18.16.0\node_modules\contentful-cli\dist\lib\utils\github.js:42:23                                                                                                                                                                               
││     at Generator.next (<anonymous>)                                                                                                                                                                                                                                                         
││     at C:\Users\gwest\AppData\Roaming\nvm\v18.16.0\node_modules\contentful-cli\dist\lib\utils\github.js:8:71                                                                                                                                                                                
││     at new Promise (<anonymous>)                                                                                                                                                                                                                                                            
││     at __awaiter (C:\Users\gwest\AppData\Roaming\nvm\v18.16.0\node_modules\contentful-cli\dist\lib\utils\github.js:4:12)                                                                                                                                                                    
││     at Task.task (C:\Users\gwest\AppData\Roaming\nvm\v18.16.0\node_modules\contentful-cli\dist\lib\utils\github.js:41:28)                                                                                                                                                                   
││     at C:\Users\gwest\AppData\Roaming\nvm\v18.16.0\node_modules\contentful-cli\node_modules\listr\lib\task.js:167:30                                                                                                                                                                        
││     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Environment

  • contentful-cli: 3.1.43
  • Node.js: v18.16.0 (via NVM)
  • NPM: 9.5.1 (via NVM)
  • OS: Windows 10

from contentful-cli.

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.