npm 与 uglify-js 相关的问题

npm 与 uglify-js 相关的问题

我正在尝试使用 node.js 在我的 Raspberry Pi 上运行一个项目(遵循本指南:http://blog.donaldderek.com/2013/06/build-your-own-google-tv-using-raspberrypi-nodejs-and-socket-io/)并且我在 npm 上遇到了一些问题。当我尝试时,npm install我遇到了一堆错误,其中第一个是npm ERR! error installing [email protected]

npm ls给出

npm WARN jade * Unmet dependency in /home/pi/app/RaspberryPiTV
npm WARN base64id 0.1.0 Unmet dependency in /home/pi/app/RaspberryPiTV/node_modules/socket.io
npm WARN policyfile 0.0.4 Unmet dependency in /home/pi/app/RaspberryPiTV/node_modules/socket.io
npm WARN socket.io-client 0.9.11 Unmet dependency in /home/pi/app/RaspberryPiTV/node_modules/socket.io
[email protected] /home/pi/app/RaspberryPiTV
ââ⬠[email protected]
â âââ [email protected]
â âââ [email protected]
â ââ⬠[email protected]
â â âââ [email protected]
â â âââ [email protected]
â â âââ [email protected]
â â âââ [email protected]
â â âââ [email protected]
â âââ [email protected]
â âââ [email protected]
â âââ [email protected]
â âââ [email protected]
â âââ [email protected]
â âââ [email protected]
â âââ [email protected]
â ââ⬠[email protected]
â   âââ [email protected]
âââ UNMET DEPENDENCY jade *
âââ [email protected]
ââ⬠[email protected]
â âââ UNMET DEPENDENCY base64id 0.1.0
â âââ UNMET DEPENDENCY policyfile 0.0.4
â âââ UNMET DEPENDENCY socket.io-client 0.9.11
âââ [email protected]  extraneous

这是我的 package.json 文件:

{
  "name": "GoogleTV-rPi",
  "version": "1.2.1",
  "private": false,
  "scripts": {
    "start": "node app.js"
  },
  "dependencies": {
    "express": "3.1.1",
    "jade": "*",
    "socket.io": "0.9.14",
    "omxcontrol": "*"
  },
  "devDependencies": {},
  "optionalDependencies": {},
  "engines": {
    "node": "*"
  }
}

Node版本是v0.10.7 npm版本是1.1.4

有什么想法我做错了吗,或者是否有任何解决方法?

相关内容