不能启动角phonecat,后脚本失败 [英] cannot start angular-phonecat, postinstall script failing

查看:224
本文介绍了不能启动角phonecat,后脚本失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在建立一个流浪汉框开始实验的node.js + angularjs应用程序的开发。因为我只是角度出发,我想给第一次尝试到角phonecat应用程序,给出由谷歌的教程之一。

I am currently setting up a vagrant box for starting the development of experimental node.js + angularjs app. Since I am just starting with angular, I want to give a first try to the angular-phonecat app, the one given as a tutorial by google.

我安装在虚拟机节点,同步文件夹是我克隆角phonecat GitHub库(在主机但因为它是同步的,这不应该的问题)。换句话说:在回购协议中的所有文件都在我的文件系统太present

I installed node in the guest machine, and the synced folder is where I cloned the angular-phonecat github repo (at the host machine but since it's synced, this shouldn't matter). In other words: all the files in the repo are present at my filesystem too.

我也跟着在 https://docs.angularjs.org/tutorial (第0步提到的步骤)。当然,我安装在客户计算机节点。

I followed the steps mentioned at https://docs.angularjs.org/tutorial (step 0). Of course, I installed node at the guest machine.

问题就来了,我第一次运行故宫安装之后。安装后脚本失败,所以在这之后一些依赖丢失。我可以启动服务器,并从我的主机,在那里我看到有一些404错误试图从我的主机获取jQuery和其他库时访问它。当然,它们不存在,并altough我可以手动将它们放置,这不是事情应该是这样。

The problem comes after the first time I run "npm install". The postinstall script is failing, so after this some dependencies are missing. I can start the server and access it from my host machine, where I see there are some 404 errors when trying to fetch jquery and other libraries from my host machine. Of course they are not there, and altough I could place them manually, this is not the way it should be.

这是错误,我得到

npm ERR! angular-phonecat@0.0.0 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the angular-phonecat@0.0.0 postinstall script.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-23-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /vagrant/angular-phonecat/npm-debug.log
npm ERR! not ok code 0

如果我做了错误,以追查表明,我得到

If I do what the error suggests in order to track it down, I get

vagrant@precise64:/vagrant/angular-phonecat$ npm owner ls angular-phonecat 
npm ERR! owner ls Couldn't get owner data angular-phonecat
npm ERR! 404 404 Not Found: angular-phonecat
npm ERR! 404 
npm ERR! 404 'angular-phonecat' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 3.2.0-23-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "owner" "ls" "angular-phonecat"
npm ERR! cwd /vagrant/angular-phonecat
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code E404
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /vagrant/angular-phonecat/npm-debug.log
npm ERR! not ok code 0

所以我有点坚持,因为我不知道如何跨preT这第二个消息。有任何想法吗?任何人只要有一个类似的问题在那里?

So I am a bit stuck since I do not know how to interpret this second message. Any ideas? Anyone with a similar problem over there?

推荐答案

已经发现了它。我跟踪了错误的线索。

Already found it. I was tracking the wrong clue.

Git的没有安装在客户计算机。我发现这个当我试图运行亭子安装。

Git was not installed at the guest machine. I found this when I tried to run "bower install".

而Git在客人机器是没有必要跟随在角phonecat教程给出的步骤,它使用的凉亭获取的依赖,而它的缺失是导致后脚本失败。

While git at the guest machine was not necessary for following the steps given at the angular-phonecat tutorial, it's used by bower to fetch the dependencies, and its absence was causing the postinstall script to fail.

这篇关于不能启动角phonecat,后脚本失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆