mac-dev-setup | A beginner 's guide to setting up a development environment | Configuration Management library
kandi X-RAY | mac-dev-setup Summary
kandi X-RAY | mac-dev-setup Summary
A beginner's guide to setting up a development environment on macOS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mac-dev-setup
mac-dev-setup Key Features
mac-dev-setup Examples and Code Snippets
Community Discussions
Trending Discussions on mac-dev-setup
QUESTION
I had to get a new hard drive on my Mac and in setting up my developer environment, I'm getting this error/message in the terminal (iTerm2):
-bash: unset: `PATH=/usr/local/opt/icu4c/bin:/usr/local/share/npm/bin:/Users/(mycomputername)/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/(mycomputername)/bin': not a valid identifier
From what I've been able to research myself so far, it might be related to installing node using brew. (I could be wrong.)
FYI:
which ruby /usr/bin/ruby
which node /usr/local/bin/node
which python /usr/local/bin/python
Also, I'm using these instructions to set up. I'm aware a few things in this list are out of date:
https://github.com/nicolashery/mac-dev-setup
EDIT:
Contents of ~/.bash_profile:
...ANSWER
Answered 2018-Jun-03 at 06:01The issue is this line in your ~/.bash_profile
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mac-dev-setup
System update
System preferences
Security
iTerm2
Homebrew
Git
Visual Studio Code
Vim
Python
Node.js
Ruby
Heroku
PostgreSQL
Redis
Elasticsearch
Projects folder
Apps
Since we're going to be spending a lot of time in the command-line, let's install a better terminal than the default one. Download and install iTerm2. In Finder, drag and drop the iTerm Application file into the Applications folder. You can now launch iTerm, through the Launchpad for instance. Let's just quickly change some preferences. In iTerm2 > Preferences..., under the tab General, uncheck Confirm closing multiple sessions and Confirm "Quit iTerm2 (Cmd+Q)" command under the section Closing. In the tab Profiles, create a new one with the "+" icon, and rename it to your first name for example. Then, select Other Actions... > Set as Default. Under the section General set Working Directory to be Reuse previous session's directory. Finally, under the section Window, change the size to something better, like Columns: 125 and Rows: 35. When done, hit the red "X" in the upper left (saving is automatic in macOS preference panes). Close the window and open a new one to see the size change.
An important dependency before Homebrew can work is the Command Line Developer Tools for Xcode. These include compilers that will allow you to build things from source. You can install them directly from the terminal with:.
The recommended way to install Ruby is to use rbenv, which allows you to manage multiple versions of Ruby on the same machine. You can install rbenv with Homebrew:.
Elasticsearch runs on Java, so check if you have it installed by running:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page