Where to put node folder for node.js install? - macos

It's currently in the directory:
/Users/myusername/node
but I feel like it should be closer to root? Maybe in /Developer? I'm having trouble finding an other advice online. I'm on macosx lion right now.
Thanks!

There is also now a Macintosh(or Windows) installer available for current releases(0.6.18 currently the latest at time of this writing). The universal .pkg installer will handle the everything for you so you don't need to worry about it :-)
If you want to know where the install ends up, I recently installed v0.6.17 on OSX Lion 10.7.4 and it looks like most of the files are under /usr/local/. Shell commands in /usr/local/bin/. Global node_modules and npm in /usr/local/lib/node_modules.
Hope that helps!

Since you're on Mac OS X you can use homebrew to manage the installation of a number of things that have recipes. Node.js is one of them.
Link
Once homebrew is installed and up to date you can simply run a command like the following.
brew install node.js

Related

Problems installing and opening Anaconda3 on macOS Sierra

I am using a MacBook Pro (early-2011) with macOS Sierra v10.12.6. I can not install and run Anaconda3. I have downloaded the pkg file from the Anaconda webpage. First day, it took overnight to finish installing. After which it said installation failed. I tried to delete all files and reinstall all over again serval times, but this hasn't worked. I made sure the /opt folder was empty before I reinstall again, but even like that didn't work.
Any ideas how to make it work?
Had a similiar problem with a geriatric iMac mid 2010 running OSX 10.13.16. The GUI installer for Anaconda 3 takes an age, then reports there was a problem.
I downloaded the install script and ran, "bash Anaconda3-2022.05-MacOSX-x86_64.sh" in a terminal.
Answered questions, and after some time, have Anaconda installed in my personal space. Now to figure out how to use the latest LTS Julia.
No Anaconda support. Current Anaconda (and likely Miniconda) distribution declares a minimum system requirement of macOS v10.13+. One could try scraping back through the archive to find an older distribution that will install, but I wouldn't recommend that.
Conda Forge supports macOS 10.9+. Conda Forge still builds all osx-64 packages with a macOS 10.9 target. Hence, you should be fine using instead a Miniforge variant for the base Conda installation. I strongly recommend Mambaforge, and using mamba instead of conda.

Uninstall qt 4 from mac os

I just installed wrong qt version on my Mac OS. Qt version is 4.8.5. Qt5 is installed into a separate folder, but version 4 is spread over the system, I cannot just delete one folder.
Is there an easy way to uninstall it?
If I remember correctly, there is python script somewhere in /Developer/qt/tools.../uninstall-qt.py
I'm not sure about the names, but you'll recognise the script.
Also, you'll have to run it with sudo, smth like this:
sudo python ./uninstall-qt.py
I hope it helps.
With later versions of macOS and Qt, the solution seems to be to run the MaintenanceTool, as described on the Qt wiki and in another answer.
You should find the tool in ~/Library/Qt.

Best place to install Jython on Mac

I'm trying to install Jython on my Mac (Snow Leopard). The installer prompts me to install it under
/Users/myusername/jython2.5.2
However this seems to be an inappropriate place to install an interpreter core, library modules etc...
Any suggestions as to where might be a more appropriate folder... What about
/User/bin/jython2.5.2
Would there be any side-effects of doing this?
I would go with /usr/local/bin, as that is the standard directory for user-installed binaries in the rest of the *nix world. Plus, it's already in your PATH. Using Homebrew helps managing these things.
If you use Homebrew you don't have to worry about these things.
brew install jython

confused about macports

I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am learning macports, and I read information about macports from http://www.macports.org/. But I am still confused what macports is after reading information from this site.
I am previous working on Windows and Linux, could anyone let me know what macports is (in easy words) and what is the similar item on Windows/Linux?
thanks in avdance,
George
macports is a way of getting executables and other compiled code installed on your computer without having to work out the details of compiling/linking each apllication.
It is equivalent to a package manager under Linux and other Unicies. There is no direct equivalent under Windows.
It is just a convenient way to install a lot of *nix soft on your mac book. They are installed separately (not overwriting) from binaries/daemons/libs already installed on your mac (by default in folder /opl/local). Also they are much fresher than those installed on your mac.
For example 10.6 ships with bash 3.2, but after running sudo port install bash, you will get version 4.x (to make it your default shell add /opt/local/bin/bash to file /private/etc/shells, run chsh -s /opt/local/bin/bash and reopen terminal).
Note other os x package managers: fink and homebrew (superuser question)

cvs for Mac OSX

is there a place I can get just the cvs executable for OSX as a standalone binary?
I don't want to go through the whole rigamarole of having to download XCode just to get cvs, which I don't use, except the source for flickrj is only published via a cvs repository.
Using Homebrew:
brew tap homebrew/dupes # cvs is on the homebrew-dupes repository.
brew install cvs
See also:
https://github.com/Homebrew/homebrew-dupes
https://github.com/Homebrew/homebrew-dupes/pull/201
Edit: I don't have it installed here (unfortunately I'm in a Windows machine) but yes, CVS is actually part of Homebrew core, so no need for the dupes repo, for both macOS and Linux versions of Homebrew. brew install cvs should be enough.
Reference:
https://github.com/Homebrew/homebrew-core/blob/master/Formula/cvs.rb
https://github.com/Homebrew/linuxbrew-core/blob/master/Formula/cvs.rb
[Edit]
All links below dead, and the below instructions only appear to work pre OS X Mavericks.
This answer on apple.stackexchange.com appears to solve the issue using 3rd party package managers.
[/Edit]
Not sure what happened to the other posts:
Version Control with CVS on Mac OSX
Xcode is on the DVD that came with your mac.
Boot into a partition with Mac OS X v10.5 (Leopard) installed.
Insert the Mac OS X v10.5 (Leopard) Install DVD.
Double-click the file XcodeTools.mpkg, located inside the directory Optional
Installs/Xcode Tools.
...
ref Apple Xcode Installation Guide
You could install Fink http://www.finkproject.org/download/index.php?phpLang=en then use Fink to install CVS for you, this would be the easiest way.
Alternatively, you could try a BSD binary from from the CVS project website, that might work. The CVS project is now at nongnu.org/cvs/
I just learned nowadays installing xcode is a breeze.
Start installation of xcode from App Store
Have lunch
Type xcrun cvs at the command prompt and - well - enjoy cvs...
If you have xcode installed, the cvs command-line binary is in /Developer/usr/bin, so putting it your path is:
export PATH=/Developer/usr/bin:$PATH
once Xcode is installed with commandline Utillities
export PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH
for newer versions of Xcode.
no moving xcode from place to place! =)

Resources