无法安装redis nodejs

时间:2016-05-30 12:34:07

标签: node.js ubuntu redis npm-install


    > sudo npm install redis 
    npm http GET http://registry.npmjs.org/redis
    npm http 304 http://registry.npmjs.org/redis
    npm http GET http://registry.npmjs.org/double-ended-queue
    npm http 304 http://registry.npmjs.org/double-ended-queue
    npm ERR! error installing redis@2.2.3

    npm ERR! Error: No compatible version found: double-ended-queue@'^2.1.0-0'
    npm ERR! Valid install targets:
    npm ERR! ["0.9.7","2.0.0-0","2.1.0-0"]
    npm ERR!     at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
    npm ERR!     at /usr/share/npm/lib/cache.js:375:15
    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!     
    npm ERR! or use
    npm ERR!     reportbug --attach /home/shahzad/npm-debug.log npm
    npm ERR! 
    npm ERR! System Linux 2.6.32-042stab113.11
    npm ERR! command "node" "/usr/bin/npm" "install" "redis"
    npm ERR! cwd /home/shahzad
    npm ERR! node -v v0.6.12
    npm ERR! npm -v 1.1.4
    npm ERR! message No compatible version found: double-ended-queue@'^2.1.0-0'
    npm ERR! message Valid install targets:
    npm ERR! message ["0.9.7","2.0.0-0","2.1.0-0"]
    npm ERR! 
    npm ERR! Additional logging details can be found in:
    npm ERR!     /home/shahzad/npm-debug.log

我已经尝试自行安装双端队列,安装2.1.0-0罚款,但仍然没有重新安装。

我也尝试过:npm -rf node_modules然后运行命令仍然没有运气。

0 个答案:

没有答案