Skip to content

Install creates .bash_profile if it doesn't exist on Mac #1949

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

Closed
tsonevn opened this issue Jul 26, 2016 · 1 comment
Closed

Install creates .bash_profile if it doesn't exist on Mac #1949

tsonevn opened this issue Jul 26, 2016 · 1 comment

Comments

@tsonevn
Copy link
Contributor

tsonevn commented Jul 26, 2016

From @psnider on July 25, 2016 15:50

OS: Mac El Capitan 10.11.5
tns: v2.1.1
Cross-platform modules: v2.1.0

I just installed nativescript via npm install -g nativescript but ran into a set of odd problems, which seem to have been caused by the install script creating a .bash_profile, which resulted in my .profile being skipped.

I've used .profile on Mac because many programs assume .profile.

It also appears that both the android installation and the java installation (run under the control of the nativescript install) both use .profile as well, as these two lines were added to the end of my .profile:

export ANDROID_HOME=/usr/local/opt/android-sdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home

I was able to resolve my issues by adding the following to the top of my .bash_profile:

if [ -f /Users/peter/.profile ]; then
    source /Users/peter/.profile
fi

Copied from original issue: NativeScript/NativeScript#2506

@tsonevn
Copy link
Contributor Author

tsonevn commented Jul 26, 2016

Hi @psnider,

Thank you for reporting this problem.
However I found that similar issue exists in NativeScript-cli repo. You could review it here #1358 .

Regards,
@tsonevn

@tsonevn tsonevn closed this as completed Jul 26, 2016
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

1 participant