Skip to content

Instantly share code, notes, and snippets.

@anyboo
anyboo / brew-guide.md
Last active June 21, 2018 11:09
Homebrew manual

brew & brew cask command

introduce brew & brew cask

@anyboo
anyboo / docker-guide.md
Last active March 10, 2018 09:35
docker newbie manual

docker bug

Terminal 中的 docker login : 使用id,不是email;否则 docker run hello-world 就会出现

Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password.

Kaisir 提供了参考

@anyboo
anyboo / how-to-npm-command.md
Created March 9, 2018 02:33
Npm command manual

npm command manual

npm ls
npm update
npm run [script]

@anyboo
anyboo / use-pm2-readme.md
Last active March 21, 2018 02:00
How to use PM2

Commands Install : cnpm install pm2 -g

npm & package.json

eg : npm run [script].

"scripts": {
"dev": "node build/dev-server.js",
@anyboo
anyboo / atom-user-guide.md
Last active March 12, 2018 07:25
Open file using atom editor from Unix Terminal

The atom user manual

Introduce atom

@anyboo
anyboo / fix-homebrew-npm.md
Created January 30, 2018 06:39 — 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

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.