所有的命令使用时候都是报这样的错误± 敲错过一条配置 关于’prefix’ 的,实在不知道怎么办了! 求教,谢谢了.
npm ERR! EEXIST, mkdir ‘/usr/local/bin/npm’ File exists: /usr/local/bin/npm Move it away, and try again.
npm ERR! System Darwin 13.1.0 npm ERR! command “node” “/usr/local/bin/npm” “config” “get” “prefix” npm ERR! cwd /usr/local/bin npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! path /usr/local/bin/npm npm ERR! code EEXIST npm ERR! errno 47 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /usr/local/bin/npm-debug.log npm ERR! not ok code 0
4 回复
@littcc 或者试试删除npm后,从源码重新编译一次nodejs,会覆盖所有的npm配置,安装一个新的, 下载nodejs源码, ./configure --> make --》sudo make install