-
Notifications
You must be signed in to change notification settings - Fork 10k
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
OSX install guide missing important step of sourcing .sh file #499
Comments
What do you need to add? the path the dvm.sh file itself? |
I'm hoping this is related... I did... Those commands were successful. |
After running brew and adding source dnvm.sh to ~/.zshrc, I still can't run dnu restore.
Any clue? |
@davidcv5 Make sure your NuGet feed is configured to the latest vNext feed, specifically <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2" />
<add key="NuGet.org" value="https://nuget.org/api/v2/" />
</packageSources>
</configuration> |
dnvm upgrade -u |
wow... that was fast!!! Thanks a lot @miguellira and @jrock2004 I tired @jrock2004 solution which was shorter and it worked prefect!! Thanks a lot! |
np @davidcv5 Do you mind executing |
@miguellira .. I'm running 4.0.1 |
@miguellira please pardon my lack of experience, how do I add that? |
@jedgrant you can just add it as a new line.
|
Fantastic, thank you! |
I've added the |
I have done all in this post, but I still have the same problem... using dnvm upgrade and dnvm upgrade -u and dnvm upgrade -f (force). Error: Could not find latest version from feed https://nuget.org/api/v2 But have the same problem.. maybe something wrong adding to my ~/.zshrc, what is the correct way please? Thanks!! |
@chemitaxis If you get that message that means the dnvm command was found, so your .zshrc file should be fine.. |
HI @davidcv5, I have done all, changed the ~/.config/NuGet/NuGet.Config that just had this
Adding that, but no way...
I don't know what I did bad... |
would it be okay, if i only add it to one of the following three files? or does it have to be in all of them? source dnvm.sh Best Regards |
@misterzik it all depends on the shell you're using. This page sums up your options: .bash_profile vs .bashrc Basically, if you use Terminal on Mac OS X you may want to add this to your
and this in your
|
@miguellira Thanks Miguel, I actually did something bit different and it seems to be working for now, but incase it stops working, I'll make sure to redirect to this page. I used this on my ~/.bashrc ;
then restarted it my terminal and was working just fine, but thanks anyways for taking your time to respond. Cheers |
Hey, i have same issue and so wrote a test .sh script- tool-init-env.1.sh
tool-init-env.2.sh
Now check what happens when its run:
So whats happening ? when script 1 does it thing and then echos the $PATH, it has the new path But straight after, when you do a echo $PATH in terminal the new path is gone. On Linux it behaves the same too:
|
@joeblew99 Try using Instead of: gedw99-MacBook-Pro:backend apple$ ./tool-init-env.1.sh try gedw99-MacBook-Pro:backend apple$ source tool-init-env.1.sh But really, now that https://get.asp.net/ is live, getting the appropriate package for your given OS is probably the best way to get started. Just be prepared to start all over again once |
Hey @mig. Yes I am aware that from the terminal directly it does work. But I actually want to be able to call a .sh that has the ability inside the script to set the path mappings for the duration if that bash session. It much easier for the team to use is the reason. And I just want to know how its done :) |
This issue is being closed because it has not been updated in 3 months. We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate. |
… versions of Chrome won't run it. Fixes #499
Add AppVeyor, Travis build status
brew install dnvm places a shell script that needs to be sourced.
I am using zsh, and the script is entirely silent when run. Only after actually opening up
dnvm.sh
did I realize that it was a bag of functions that needed to be sourced.Solutions:
The text was updated successfully, but these errors were encountered: