【发布时间】:2015-09-21 17:10:42
【问题描述】:
我在尝试使用 bundle install 时收到此错误 - 有人知道可能是什么原因造成的吗?
$ bundle install
path.js:439
throw new TypeError('Arguments to path.resolve must be strings');
^
TypeError: Arguments to path.resolve must be strings
at Object.posix.resolve (path.js:439:13)
at Object.<anonymous> (/usr/local/lib/node_modules/script/bin/bundle:38:24)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
示例 gemfile:
source 'https://rubygems.org'
gem 'capybara'
【问题讨论】:
-
谷歌充满创意
-
您要安装什么 gem?您是否尝试过卸载 bundler 并重新安装?
-
我建议在您的问题中发布您的 Gemfile,以便人们查看是否存在语法错误。
-
@fl00r,我确实先尝试了 Google,但找不到任何与捆绑程序相关的内容(谷歌搜索现在让我回到这篇文章!)。
-
@Chris 我已经尝试卸载并重新安装。我收到任何 gem 的错误,将示例添加到 OP
标签: ruby rubygems bundler gemfile