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

Error when selecting level #20

Open
eggnima opened this issue May 8, 2018 · 3 comments
Open

Error when selecting level #20

eggnima opened this issue May 8, 2018 · 3 comments

Comments

@eggnima
Copy link

eggnima commented May 8, 2018

Hi, when selecting a level via the menu or the stream-adventure select xxx command, I'm getting the following error:

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

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:124:9)
at Object.fs.writeFile (fs.js:1244:14)
at Shop.save (/usr/local/lib/node_modules/stream-adventure/node_modules/adventure/index.js:288:8)
at Shop.select (/usr/local/lib/node_modules/stream-adventure/node_modules/adventure/index.js:246:10)
at Shop.execute (/usr/local/lib/node_modules/stream-adventure/node_modules/adventure/index.js:97:14)
at Object. (/usr/local/lib/node_modules/stream-adventure/bin/cmd.js:18:6)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)

I'm running v10.0.0 of node, on macOS v10.13.4 (17E199), with iTerm2 v3.1.6.

@i474232898
Copy link

Use v8.11.1 instead

@Drivez
Copy link

Drivez commented May 28, 2018

@eggnima you can use nvm to have multiple node versions on you machine
TLDR;
Install nvm on mac, run
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

then open a new tab(terminal window) and install a node version
nvm install 8.11.1
and add the 10 version
nvm install 10

now you can switch by using nvm use 8
and switch back nvm use 10

Link to nvm repo

@ccarruitero
Copy link
Contributor

This is a problem with adventure module. Since workshopper/stream-adventure@5bcf696, we aren't using adventure anymore.
So, I'll move the issue to the adventure repository

@ccarruitero ccarruitero transferred this issue from workshopper/stream-adventure Apr 24, 2020
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

4 participants