树莓派,rasbian 执行npm cache clean 和 npm install douban.fm -g 后出现以下报错
tonywangcn opened this issue · 2 comments
npm ERR! error installing sdk@0.1.1
npm ERR! error installing douban-sdk@0.0.4
npm ERR! error installing douban.fm@0.1.7
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/douban.fm/node_modules/consoler/node_modules/___colors.npm/package/test.js'
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /root/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.10.25+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "douban.fm" "-g"
npm ERR! cwd /root
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! path /usr/local/lib/node_modules/douban.fm/node_modules/consoler/node_modules/___colors.npm/package/test.js
npm ERR! fstream_path /usr/local/lib/node_modules/douban.fm/node_modules/consoler/node_modules/___colors.npm/package/test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, lstat '/usr/local/lib/node_modules/douban.fm/node_modules/consoler/node_modules/___colors.npm/package/test.js'
npm ERR! errno {}
npm ERR! fstream_stack Object.oncomplete (/usr/lib/nodejs/fstream/lib/writer.js:204:26)
npm ERR! Error: No compatible version found: swig@'>=1.3.2- <1.4.0-'
npm ERR! Valid install targets:
npm ERR! ["0.1.1","0.1.2","0.1.3","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.4.0","0.5.0","0.6.0","0.6.1","0.7.0","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.10.0","0.11.0","0.11.1","0.11.2","0.12.0","0.12.1","0.13.0","0.13.1","0.13.2","0.13.3","0.13.4","0.13.5","0.14.0","1.0.0-pre1","1.0.0-pre2","1.0.0-pre3","1.0.0-rc1","1.0.0-rc2","1.0.0-rc3"]
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR! at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR! at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR! at /usr/share/npm/lib/cache.js:408:5
npm ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /root/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.10.25+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "douban.fm" "-g"
npm ERR! cwd /root
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: swig@'>=1.3.2- <1.4.0-'
npm ERR! message Valid install targets:
npm ERR! message ["0.1.1","0.1.2","0.1.3","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.4.0","0.5.0","0.6.0","0.6.1","0.7.0","0.8.0","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.10.0","0.11.0","0.11.1","0.11.2","0.12.0","0.12.1","0.13.0","0.13.1","0.13.2","0.13.3","0.13.4","0.13.5","0.14.0","1.0.0-pre1","1.0.0-pre2","1.0.0-pre3","1.0.0-rc1","1.0.0-rc2","1.0.0-rc3"]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm not ok
root@raspberrypi:~# cat /root/npm-debug.log
info it worked if it ends with ok
verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'install', 'douban.fm', '-g' ]
info using npm@1.1.4
info using node@v0.6.19
verbose config file /root/.npmrc
verbose config file /usr/etc/npmrc
verbose config file /usr/share/npm/npmrc
silly exec /usr/bin/nodejs "/usr/share/npm/bin/npm-get-uid-gid.js" "nobody" 0
silly spawning [ '/usr/bin/nodejs',
silly spawning [ '/usr/share/npm/bin/npm-get-uid-gid.js', 'nobody', 0 ],
silly spawning null ]
info using node@v0.6.19 这和刚才那个 issue 是同样的问题的~