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

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

Closed
psnider opened this issue Jul 25, 2016 · 2 comments
Closed

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

psnider opened this issue Jul 25, 2016 · 2 comments

Comments

@psnider
Copy link

psnider commented Jul 25, 2016

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
@tsonevn
Copy link
Contributor

tsonevn commented Jul 26, 2016

This issue was moved to NativeScript/nativescript-cli#1949

@lock
Copy link

lock bot commented Aug 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants