Skip to content
kuang edited this page Oct 5, 2015 · 1 revision
  • 安装的是ubuntu 10.04 有点旧
  • 利用大厨网的配置,注意sudo后面的空格
# below is added by myself
export PATH=/usr/local/node/bin/:$PATH
alias sudo='sudo env PATH=$PATH '
alias cnpm="npm --registry=https://registry.npm.taobao.org \
  --cache=$HOME/.npm/.cache/cnpm \
    --disturl=https://npm.taobao.org/dist \
      --userconfig=$HOME/.cnpmrc"
##
  • sudo gedit /etc/sudoers
Defaults	!env_reset
Clone this wiki locally