Closed gubikmic closed 5 years ago
I have never experienced that, will need more info.
Open a new terminal session and do:
which node
Then do:
node -v
Then do:
which node
post the results here.
After all of that can you also can you try to install a new node version and then doing nvm use VERSION_YOU_INSTALLED
Thanks for your reply! Here's what I get:
> which node
env: node: No such file or directory
> node -v
v11.11.0
> which node
/Users/mmg/.nvm/versions/node/v11.11.0/bin/node
>
If I add an older node version and nvm use
it, then the REPL works as expected.
Basically node repl is broken in nodejs from versions 11.10 and 11.11 for fish. If you install node from source you will be getting the same problem. Has nothing to do with fish-nvm.
I have created an issue here https://github.com/nodejs/node/issues/26663 feel free to follow that.
Found the issue it turns out it's actually on me.
Fixed on the latest version, just pull latest version
Awesome, thank you for the speedy fix!
internal/modules/cjs/loader.js:651 throw err; ^
Error: Cannot find module 'prompt'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:649:15)
at Function.Module._load (internal/modules/cjs/loader.js:575:25)
at Module.require (internal/modules/cjs/loader.js:705:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.
HELP ME
Hi, I'm stuck with the following error message that came up out of nowhere. I didn't even change anything that I remember but I can't launch a
node
REPL anymore:What works is
env node
and also launching a bash and thennode
.I just reinstalled fisher, nvm, and fish-nvm but that didn't help.
Any ideas?