nodejs 安装npm报错 只要运行npm install都会报错,什么问题??求解
命令:npm install npm -g
结果如下:
npm http GET https://registry.npmjs.org/npm
npm http 304 https://registry.npmjs.org/npm
npm ERR! Error: ENOTDIR, mkdir '/root/tmp/npm-9524-xKAecA3a/1496684031361-0.19607638730667531'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Linux 2.6.32-279.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "npm" "-g"
npm ERR! cwd /etc
npm ERR! node -v v0.10.48
npm ERR! npm -v 1.3.6
npm ERR! path /root/tmp/npm-9524-xKAecA3a/1496684031361-0.19607638730667531
npm ERR! code ENOTDIR
npm ERR! errno 27
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /etc/npm-debug.log
npm ERR! not ok code 0