GithubHelp home page GithubHelp logo

Comments (10)

bpinto avatar bpinto commented on May 26, 2024

Which plugin are you using? When are you having this error message? Please add more details to the problem so we can help out.

from oh-my-fish.

krzkrzkrz avatar krzkrzkrz commented on May 26, 2024

I am trying to start the ember server via ember server. Normally in bash, having source ~/.nvm/nvm.sh in .bashrc will get this working

from oh-my-fish.

derekstavis avatar derekstavis commented on May 26, 2024

@krzkrzkrz NVM is written in bash, thus it will not work seamlessly with fish. I recommend you to use foreign-env plugin to run NVM inside fish.

from oh-my-fish.

krzkrzkrz avatar krzkrzkrz commented on May 26, 2024

Would https://github.com/tj/n be a better fit for Fish?

from oh-my-fish.

krzkrzkrz avatar krzkrzkrz commented on May 26, 2024

Also, using foreign-env. Installed via omf install foreign-env. Where should the following go?

fenv source ~/.nvm/nvm.sh \;

In ~/.config/fish/config.fish?

from oh-my-fish.

derekstavis avatar derekstavis commented on May 26, 2024

This line doesn't do anything usable. NVM is implemented as a bash function, so you need to specify a nvm command afterwards:

fenv source ~/.nvm/nvm.sh \; nvm --help

from oh-my-fish.

krzkrzkrz avatar krzkrzkrz commented on May 26, 2024

@derekstavis which file should that line go into?

from oh-my-fish.

derekstavis avatar derekstavis commented on May 26, 2024

This line don't need to be anywhere, you need to use it to install node versions:

fenv source ~/.nvm/nvm.sh\; nvm install 0.10

Or to use a specific node version:

fenv source ~/.nvm/nvm.sh\; nvm use 0.10

But if you need to change to a node version just when you open a new shell:

echo 'fenv source ~/.nvm/nvm.sh\; nvm use 0.10' >> $OMF_CONFIG/init.fish

EDIT: mistyped, it's init.fish not init/fish

from oh-my-fish.

derekstavis avatar derekstavis commented on May 26, 2024

Bear in mind that as nvm is a bash function it will not be available in fish. Foreign env executes its arguments inside bash, that's why you need to fenv source ~/.nvm/nvm.sh\; in the same live where you call nvm.
It's on my plans adding a nvm plugin to the framework, but as it's dependant upon foreign-env we need to tackle plugin dependency management before.

from oh-my-fish.

krzkrzkrz avatar krzkrzkrz commented on May 26, 2024

Good to know and thanks for the help. Closing for now

from oh-my-fish.

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.