Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 奇怪的Bower/Git错误(错误代码#128,无法chdir到';Y://';)_Node.js_Git_Osx Mavericks_Bower - Fatal编程技术网

Node.js 奇怪的Bower/Git错误(错误代码#128,无法chdir到';Y://';)

Node.js 奇怪的Bower/Git错误(错误代码#128,无法chdir到';Y://';),node.js,git,osx-mavericks,bower,Node.js,Git,Osx Mavericks,Bower,我刚刚在新安装的OSX10.9.2上安装了Node/NPM/Yeoman。Xcode工具都已安装。我打开了一个当前项目的存储库,运行bowerinstall来安装依赖项。输出如下所示: bower angular#1.2.6 not-cached git://github.com/angular/bower-angular.git#1.2.6 bower angular#1.2.6 resolve git://github.com/angular/bower

我刚刚在新安装的OSX10.9.2上安装了Node/NPM/Yeoman。Xcode工具都已安装。我打开了一个当前项目的存储库,运行
bowerinstall
来安装依赖项。输出如下所示:

bower angular#1.2.6         not-cached git://github.com/angular/bower-angular.git#1.2.6
bower angular#1.2.6            resolve git://github.com/angular/bower-angular.git#1.2.6
bower json3#~3.2.6          not-cached git://github.com/bestiejs/json3.git#~3.2.6
bower json3#~3.2.6             resolve git://github.com/bestiejs/json3.git#~3.2.6
bower es5-shim#~2.1.0       not-cached git://github.com/es-shims/es5-shim.git#~2.1.0
bower es5-shim#~2.1.0          resolve git://github.com/es-shims/es5-shim.git#~2.1.0
bower jquery#~1.10.2        not-cached git://github.com/jquery/jquery.git#~1.10.2
bower jquery#~1.10.2           resolve git://github.com/jquery/jquery.git#~1.10.2
bower bootstrap#~3.0.3      not-cached git://github.com/twbs/bootstrap.git#~3.0.3
bower bootstrap#~3.0.3         resolve git://github.com/twbs/bootstrap.git#~3.0.3
bower angular-resource#1.2.6       not-cached git://github.com/angular/bower-angular-resource.git#1.2.6
bower angular-resource#1.2.6          resolve git://github.com/angular/bower-angular-resource.git#1.2.6
bower angular-route#1.2.6          not-cached git://github.com/angular/bower-angular-route.git#1.2.6
bower angular-route#1.2.6             resolve git://github.com/angular/bower-angular-route.git#1.2.6
bower angular-file-upload#0.4.1    not-cached git://github.com/nervgh/angular-file-upload.git#0.4.1
bower angular-file-upload#0.4.1       resolve git://github.com/nervgh/angular-file-upload.git#0.4.1
bower angular-mocks#1.2.6          not-cached git://github.com/angular/bower-angular-mocks.git#1.2.6
bower angular-mocks#1.2.6             resolve git://github.com/angular/bower-angular-mocks.git#1.2.6
bower angular-scenario#1.2.6       not-cached git://github.com/angular/bower-angular-scenario.git#1.2.6
bower angular-scenario#1.2.6          resolve git://github.com/angular/bower-angular-scenario.git#1.2.6
bower angular-mocks#1.2.6             ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular-mocks.git", exit code of #128

Additional error details:
fatal: Could not chdir to 'Y:/': No such file or directory
有趣的是,
ECMDERR
出现的包在我每次运行
bower install
时都会发生更改,这似乎表明它不是导致错误的特定包

我发现了几个不同的例子,人们在从防火墙后面进行克隆时遇到了错误128的问题。它告诉我,这可以通过运行git config--global url.“https://”来解决,而不是git://来告诉git使用https作为协议而不是git,但这并没有解决我的问题。更令人困惑的是
fatal:cannotchdir到'Y:/':没有这样的文件或目录
。坦白说,我不知道这是从哪里来的。它似乎只在我运行某些git命令时出现,例如
ls remote

此外,我还可以通过
SSH
HTTPS
成功地进行手动克隆。这个错误只发生在鲍尔


有人对如何解决这个问题有什么建议吗?我已经搜索了很多次,没有找到任何其他提到它的东西。任何帮助都将不胜感激

我在尝试角度种子时遇到了同样的错误

但是,我的解决方案不是将项目移动到本地磁盘(项目已经是本地的)。作为运行时解决问题的方法

npm install
我首先安装了bower命令,然后直接使用bower安装来安装bower包。中间有一个缓存清理,很好的测量。

sudo npm install -g bower
bower cache clean
bower install

希望这将有助于缓解其他人的沮丧情绪。

我也有这个问题。我的解决方案是添加到存储库配置中

[url "https://"]
    insteadOf = git://
该文件位于您的_REPO/.git/config中

不在全局配置中,如:

git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://

我也有同样的问题

[url "https:"]
    insteadOf = git:

对于您的_REPO/.git/config,https没有双正斜杠,这是因为在代理环境中,Http和https是首选的,所以不是

"devDependencies": {

    "file-loader": "^0.8.4",
    "gh-pages": "git://github.com/markdalgleish/gh-pages#cli-message",

  }
将其替换为Https

"devDependencies": {

        "file-loader": "^0.8.4",
        "gh-pages": "Https://github.com/markdalgleish/gh-pages#cli-message",

      }
或者,您可以在全球回购协议中进行设置


祝你好运

这与我的项目位于通过
SMB
本地安装的网络驱动器有关。当我在本地复制项目并运行命令时,它起了作用。我需要寻找一种更好的方法来使用Git访问samba共享。如果有人有任何想法,我绝对愿意接受。