我在安装shiny-server (R)时遇到问题。按照https://github.com/rstudio/shiny-server/wiki/Building-Shiny-Server-from-Source上的安装说明操作时,请执行seccond-last步骤
(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,所以我不能只安装预编译的版本
发布于 2014-02-19 21:51:08
看,答案是你没有所有的构建必需品。
因此,您需要安装以下内容:
以下是更多信息的文档。
具体到您提到的错误:
(cd ..&& ext/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js --python="$PYTHON“重建
未安装Python或未设置环境$PYTHON
并确保您安装了python 2.x (真的。3.x将不起作用)
https://stackoverflow.com/questions/21882303
复制相似问题