Articles of ubuntu server

错误:找不到模块'./lib/socket.io'

我有我的服务器与早期版本的node.js,npm和socket.io工作,但更新后,我开始与socket.io问题: $ node server.js node.js:237 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Cannot find module './lib/socket.io' at Function._resolveFilename (module.js:333:15) at Function._load (module.js:280:25) at Module.require (module.js:357:17) at require (module.js:373:17) at Object.<anonymous> (/usr/local/lib/node_modules/socket.io/index.js:8:18) at Module._compile (module.js:444:26) at Object..js (module.js:462:10) at Module.load (module.js:351:32) at Function._load (module.js:309:12) at Module.require (module.js:357:17) 在升级之前,我在node_modules下有一个socket.io的符号链接,指向具有相同名称的“集中安装”目录。 最近我试图通过发出命令来安装socket.io本地到我的项目: npm […]

找不到Python可执行文件“python”

当我安装iconv与npm有以下错误: iconv@2.1.0 install / root / Dropbox / nodeApps / nodeApp / node_modules / iconv node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:103:14) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:42:11 gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:25) gyp […]