Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/39.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安装组件时返回不同的目录_Node.js_Npm_Bower_Bower Install_Bower Register - Fatal编程技术网

Node.js 在不同的服务器上使用bower安装组件时返回不同的目录

Node.js 在不同的服务器上使用bower安装组件时返回不同的目录,node.js,npm,bower,bower-install,bower-register,Node.js,Npm,Bower,Bower Install,Bower Register,我的webapp使用bower构建js依赖关系,需要jquery-ui.js,所以我将jquery-ui添加到bower.json中 但是当我在不同的服务器上运行bower install时,结果是不同的,在一台服务器上,目录是app/components/jquery ui/jquery-ui.js 在另一台服务器上,目录是app/components/jqueryui-1.11.4/jquery-ui.js 为什么会有不同的结果?我有谷歌很多,但只有找到这个答案 ,但仍然无法找出根本原因,什

我的webapp使用bower构建js依赖关系,需要jquery-ui.js,所以我将jquery-ui添加到bower.json中

但是当我在不同的服务器上运行bower install时,结果是不同的,在一台服务器上,目录是app/components/jquery ui/jquery-ui.js 在另一台服务器上,目录是app/components/jqueryui-1.11.4/jquery-ui.js

为什么会有不同的结果?我有谷歌很多,但只有找到这个答案 ,但仍然无法找出根本原因,什么可能导致这种结果?两台服务器上的bower配置不同


谢谢大家!

我可以看到一个服务器从它的防火墙获取代码,当网络不工作时,无法访问某些组件导致下载终止。