【发布时间】:2014-03-19 21:22:33
【问题描述】:
我在安装shiny-server (R) 时遇到问题。按照https://github.com/rstudio/shiny-server/wiki/Building-Shiny-Server-from-Source 的安装说明进行操作时,在倒数第二步
(cd .. && ext/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js --python="$PYTHON" rebuild)
我收到以下错误:
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '../package'
at Function._resolveFilename (module.js:317:11)
at Function._load (module.js:262:25)
at require (module.js:346:19)
at Object.<anonymous> (/store/opt/shiny-server/ext/node/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:78:17)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at require (module.js:346:19)
at Object.<anonymous> (/store/opt/shiny-server/ext/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:13:11)
有什么建议可以解决这个问题吗?
更新:我使用的是 Ubuntu 11.10,所以我不能只安装预编译版本
【问题讨论】:
-
Ubuntu 11.10,所以我不能使用预编译版本
标签: r node.js ubuntu shiny-server