Skip to content

Instantly share code, notes, and snippets.

View lrcry's full-sized avatar

Ran lrcry

View GitHub Profile
@lrcry
lrcry / fix-homebrew-npm.md
Created January 5, 2016 01:52 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

If you just want to fix the issue quickly, scroll down to the "solution" section below.

Explanation of the issue

If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g, you may see an error like this:

$ npm update npm -g
@lrcry
lrcry / common-troubleshoot-wordpress.md
Last active September 6, 2015 04:35
WordPress common problems during development

Common troubleshoot

First time using md. It is awesome! MarkDown tutorial

GET/POST? Which is the POST ID?

1. Cannot get pretty permalink in WordPress

Solution: Check the following items on your server/computer and your project folder:

  • PHP Module mod_rewrite. Check it in httpd.conf under the directory of your apache install. In some cases there will be a comment ("#") before those two lines of code. To make it work, just uncomment in httpd.conf