Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /www/wwwroot/s5s5.me/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /www/wwwroot/s5s5.me/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /www/wwwroot/s5s5.me/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /www/wwwroot/s5s5.me/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /www/wwwroot/s5s5.me/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /www/wwwroot/s5s5.me/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /www/wwwroot/s5s5.me/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
首先安装nvm,这是个多版本管理器,也是目前装nodejs最优办法
yum install git |
yum install git
curl https://raw.github.com/creationix/nvm/master/install.sh | sh |
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
echo ". ~/.nvm/nvm.sh" >> ~/.bashrc |
echo ". ~/.nvm/nvm.sh" >> ~/.bashrc
关闭terminal,再打开
nvm install 0.10.4 |
nvm install 0.10.4
再装npm,这是用来管理模块的
curl https://npmjs.org/install.sh | sh |
curl https://npmjs.org/install.sh | sh
安装express模块
npm install express |
npm install express
升级模块
npm update |
npm update
资料看了一千条,环境搭了一百遍,一行代码没写,我又蛋痛了……
“curl http://npmjs.org/install.sh | sh” 这里用http会显示“syntax error near unexpected token `newline’”,用“curl https://npmjs.org/install.sh | sh”就可以了
哈,那我改改