First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Update 7 Oct 2010: | |
# - This example does *not* appear to work with Chrome >=6.0. Apparently, | |
# the WebSocket protocol implementation in the cramp gem does not work | |
# well with Chrome's (newer) WebSocket implementation. | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby |
#!/bin/bash | |
# Program: | |
# 利用專案樣版在 Subversion 中建立一個 Zend Framework 專案 | |
# History: | |
# 2011/11/03 Jace Ju First release | |
# Usage: | |
# Create template of project at first time: | |
# > cd /path/to/project_template | |
# > mkdir branches | |
# > mkdir tags |
<?php | |
trait Singleton | |
{ | |
protected static $_instance = null; | |
public static function getInstance() | |
{ | |
if (static::$_instance === null | |
|| !(static::$_instance instanceof static)) { |
快捷键: | |
ctrl+tab: switcher,在已打开文件之间或者工具窗口间切换 | |
alt+alt: 连续两次快速按下alt键不放,显示tool windows(project,database ...) | |
ctrl+k: 快速调用 commit changes 对话框 | |
alt+F3: 显示搜索窗格,对当前文件进行搜索,然后配合ctrl+alt+r,可以进行替换操作 | |
ctrl+shift+f: find in path 在指定文件夹或者整个project内搜索,ctrl+shift+r进行替换操作 | |
ctrl+shift+alt+t: 快速rename,里面有好几个选项,慢慢理解吧 | |
shift+F6: rename,自动重命名该变量所有被调用的地方 | |
ctrl+shift+n: 快速导航到指定文件,弹出一个dialog,输入文件名即可 |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
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.
{"lastUpload":"2020-06-18T22:29:09.889Z","extensionVersion":"v3.4.3"} |