![For For](/uploads/1/2/5/4/125445138/385520994.png)
Mac OSX Server Command-Line Administration. Chapter 2 21 Installing Server Software and Finishing Basic Setup 21 Installing Server Software 21. 155 Modifying an Open Directory Node 155 Testing Open Directory Plugins 156 Registering URLs With Service Location Protocol (SLP).
![Admin Access For Mac To Run Node Install Admin Access For Mac To Run Node Install](/uploads/1/2/5/4/125445138/257665828.png)
EACCES is an error of not having access on doing an operation. Taken the line: npm ERR! Error: EACCES, mkdir '/usr/local/lib/nodemodules/bower' we can see that npm was unable to create a directory in the given location. The reason is very likely that you are not running the command as super user. In fact, the error log is even suggesting that: npm ERR! Please try running this command again as root/Administrator.
To run as administrator, you have to prefix those commands with sudo. That is: sudo npm install -g bower. You will be required to type in a password for security reasons.
I'd recommend that you install Node.js using a version manager such as. This way, you kill two birds with one stone:. First, you can manage multiple versions of Node.js on the same machine (which you will want to do sooner or later). Second, you get around all the access problems you experience when installing Node.js without it.
At least that's my experience. Basically it's as easy as running $ curl bash from the command line.
There are many ways to reset the login password without installation media, here are three: Change the password in single user mode. Hold ⌘+ S on startup. mount -uw / ( fsck -fy is not needed).
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist (or /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist in 10.6). dscl.
Passwd /Users/username (without a trailing slash) and enter a new password. You can ignore the error about com.apple.DirectoryServices.plist.
reboot Create a new admin account. Hold ⌘+ S on startup.
mount -uw / ( fsck -fy is not needed). rm /var/db/.AppleSetupDone. reboot. Go through the steps of creating a new account.
You can leave all fields in the personal information step blank. After logging in to the new account, go to the Users & Groups preference pane.
Select the old account, press the Reset Password. I'm sorry to hear about your father. It is possible to reset the admin password to a Mac quite easily providing you have the correct install disc to match the version of the software that is running on the computer. Resetting the password does not delete any of the information on the Mac, but it will prevent you from gaining access to other passwords that are saved in the system for things like mail accounts or wifi keys that have previously been entered and saved by the original user. Once you have changed the password you will be prompted to create a new Keychain, which is the name of the place where these other passwords are saved. Once you have admin access you can create or delete accounts.
There is a support article on the Apple website with info on how to reset the password here: If you don't have the install disc or need more help, I'd suggest booking an appointment at the Genius Bar at your local Apple Store and they will help you reset it at no charge.