Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locomotivejs installation throws TypeError [ERR_INVALID_CALLBACK] #184

Open
fschoenfeldt opened this issue Feb 24, 2019 · 4 comments
Open

Comments

@fschoenfeldt
Copy link

fschoenfeldt commented Feb 24, 2019

My System:
Ubuntu 18.10 patched as of 24.02.19
Node -v:
v10.15.0

Hey. Im trying to get started with Locomotivejs following this guide. When I try to install Locomotive via lcm create myapp, it throws the following error:

fs.js:129
  throw new ERR_INVALID_CALLBACK();
  ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:129:9)
    at Object.writeFile (fs.js:1159:14)
    at write (/usr/lib/node_modules/locomotive/lib/cli/create.js:336:6)
    at /usr/lib/node_modules/locomotive/lib/cli/create.js:297:5
    at /usr/lib/node_modules/locomotive/lib/cli/create.js:325:11
    at /usr/lib/node_modules/locomotive/node_modules/mkdirp/index.js:38:26
    at FSReqWrap.oncomplete (fs.js:155:5)

Im not sure if this error is critical so I dont want to continue trying to develop the application.

What do you guys think?

@Myolisi
Copy link

Myolisi commented Feb 21, 2020

@fschoenfeldt did you manage to find your way around the above issue? Have the same problem when creating a new project.

@fschoenfeldt
Copy link
Author

No, I didn't. And I wouldn't recommend using this project as it hasn't been updated for like 3 years.

@Myolisi
Copy link

Myolisi commented Feb 22, 2020

That's what I just noticed, it had a great potential though. And it looks like the project got forked by other contributors accortding to issue 177 check -> maglev and emvc

@dragonbike
Copy link

dragonbike commented Jul 7, 2021

Replace line 335 or 336 with fs.writeFile(path, str, (err) => {}); in the file " \locomotive\lib\cli\create.js "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants