首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在安装screepsmod mongo并运行npx屏幕启动后拒绝权限。

在安装screepsmod mongo并运行npx屏幕启动后拒绝权限。
EN

Stack Overflow用户
提问于 2019-07-30 02:43:28
回答 1查看 140关注 0票数 0

我成功地安装了尖叫声-蒙戈。但是在执行npx screeps start时发生了一个错误,如下所示:

代码语言:javascript
复制
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, stat '/root/.npm/_npx/4679/lib/node_modules/screeps/node_modules/isolated-vm/.node-gyp/8.16.0'
gyp ERR! System Linux 4.15.0-54-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release" "-j" "4"
gyp ERR! cwd /root/.npm/_npx/4679/lib/node_modules/screeps/node_modules/isolated-vm
gyp ERR! node -v v8.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! isolated-vm@1.7.10 install: `node-gyp rebuild --release -j 4`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the isolated-vm@1.7.10 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-07-30T01_45_59_317Z-debug.log
Install for screeps@latest failed with code 1

下面是我使用的版本列表。

  • 节点8.16.0
  • 国家预防机制6.4.1
  • 尖叫声3.4.3
  • 尖叫声-芒果2.5.5
  • mongodb 4.0.10
  • redis 5.0.5

以下是安装screepsmod-mongo时的输出。

代码语言:javascript
复制
Screeps mod "screepsmod-mongo" has been successfully installed
+ screepsmod-mongo@2.5.5
added 15 packages from 10 contributors, removed 541 packages, updated 1 package and audited 183 packages in 85.481s
found 3 vulnerabilities (1 low, 2 high)
  run `npm audit fix` to fix them, or `npm audit` for details

我的mongodbredis安装正确,地址是mongodb://screeps-mongoscreeps-redis。我在.screepsrc中做了以下配置

代码语言:javascript
复制
[mongo]
host = mongodb://screeps-mongo

[redis]
host = screeps-redis

下面是mods.json中的

代码语言:javascript
复制
"mods": [
  "node_modules/screepsmod-mongo/index.js"
]

我怎样才能解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2019-08-01 01:22:28

我解决了,它似乎是由npm引起的。切换到yarn安装不会导致此问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57263663

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档