vim ~/.bash_profile
添加一行,!wq退出保存。
export PATH="/Users/liuman/.npm-global/bin:$PATH"
立即生效
source ~/.bash_profile
vim ~/.bash_profile
添加一行,!wq退出保存。
export PATH="/Users/liuman/.npm-global/bin:$PATH"
立即生效
source ~/.bash_profile
npm install -g cnpm –registry=https://registry.npm.taobao.org
In file included from ../lib/kerberos.cc:1:0: ../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: 没有那个文件或目录 compilation terminated. kerberos.target.mk:88: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1 make: Leaving directory '/home/liuman/paipaijian/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos/build'
安装libkrb
sudo apt-get install libkrb5-dev