how to update npm on macOS

Perhaps you have already solved this, but here is what I found when I had exactly this issue. I had 2 versions of npm installed. I verified this as follows: I worked around the issue by updating the path in my bash profile, but would like to know why (how) I ended up with 2 … Read more

Mongod: Command Not Found (OS X)

I am trying to test MongoDB and I have it all downloaded and moved into the root folder. I can navigate to the folder that holds the mongod, but when I try to run it by typing “mongod” into my terminal, I get a message that says: “mongod: command not found”

hat’s a clean way to stop mongod on Mac OS X?

It’s probably because launchctl is managing your mongod instance. If you want to start and shutdown mongod instance, unload that first: Then start mongod manually: You can find your mongod.conf location from ~/Library/LaunchAgents/org.mongodb.mongod.plist. After that, db.shutdownServer() would work just fine. Added Feb 22 2014: If you have mongodb installed via homebrew, homebrew actually has a handy brew services command. To … Read more

Where to find extensions installed folder for Google Chrome on Mac?

The default locations of Chrome’s profile directory are defined at http://www.chromium.org/user-experience/user-data-directory. For Chrome on Mac, it’s The actual location can be different, by setting the –user-data-dir=path/to/directory flag.If only one user is registered in Chrome, look in the Default/Extensions subdirectory. Otherwise, look in the <profile user name>/Extensions directory. If that didn’t help, you can always do a custom search. Go to chrome://extensions/, and find out the ID of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)