Skip to content

mkdirp is not a function #45

Description

@ATButteaux

Describe the bug
Building results in error message "TypeError: mkdirp is not a fuction"

To Reproduce
Follow build instructions.

Expected behavior
No fatal error messages.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS:
$ lsb_release -a 
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 23.04
Release:	23.04
Codename:	lunar

Additional context

$ npm install emanator@latest
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

added 222 packages in 2s

25 packages are looking for funding
  run `npm fund` for details

$ git clone https://github.com/aspectron/kdx.git
Cloning into 'kdx'...
remote: Enumerating objects: 5655, done.
remote: Counting objects: 100% (1366/1366), done.
remote: Compressing objects: 100% (532/532), done.
remote: Total 5655 (delta 834), reused 1346 (delta 822), pack-reused 4289
Receiving objects: 100% (5655/5655), 20.59 MiB | 11.99 MiB/s, done.
Resolving deltas: 100% (3449/3449), done.
$ cd kdx/
$ find ~/Downloads/ -name emanate
/home/trash/Downloads/kdx/node_modules/emanator/emanate
/home/trash/Downloads/kdx/node_modules/.bin/emanate
$ /home/trash/Downloads/kdx/node_modules/emanator/emanate --all
_  _ ___  _  _ 
|_/  |  \  \/  
| \_ |__/ _/\_ 
               
[19:09:38] selecting go version go1.16.0
/home/trash/Downloads/kdx/node_modules/emanator/lib/modules/go.js:93
			mkdirp(folder);
			^

TypeError: mkdirp is not a function
    at /home/trash/Downloads/kdx/node_modules/emanator/lib/modules/go.js:93:4
    at new Promise (<anonymous>)
    at Object.go (/home/trash/Downloads/kdx/node_modules/emanator/lib/modules/go.js:87:10)
    at /home/trash/Downloads/kdx/kdx/.emanate:59:28
    at /home/trash/Downloads/kdx/kdx/.emanate:301:3
    at Emanate.emanate (/home/trash/Downloads/kdx/node_modules/emanator/emanate:148:70)
    at Emanate.main (/home/trash/Downloads/kdx/node_modules/emanator/emanate:106:15)

Node.js v18.13.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions