咕噜从一个新的文书上士服务回报安装 - 警告:任务"服务"未找到 [英] grunt serve from a fresh Yeoman install returns - Warning: Task "serve" not found

查看:250
本文介绍了咕噜从一个新的文书上士服务回报安装 - 警告:任务"服务"未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行后哟角然后 CD 'ING到应用程序的根文件夹(在同一水平的应用文件夹, gruntfile 的package.json 等),我尝试咕噜服务,我得到上述错误。咕噜不会为我启动服务器。

After running yo angular and then cd'ing into the application's root folder (at same level as the app folder, gruntfile, package.json etc) I try grunt serve and I get the above error. Grunt won't start a server for me.

根目录下,我都试过,但仍是同样的错误。

I have searched all over but couldn't find say to run npm install and bower install within the application's root directory, which I have tried but still the same error.

我已经更新,并检查亭子/咕噜/ NPM和他们都是不错的。

I've updated and checked bower/grunt/npm and they're all good.

有什么建议吗?

推荐答案

我想我已经找到了解决办法!

I think I have found a solution!

<一个href=\"http://yangweilim.com/blog/2014/06/01/npm-install-issues-plus-angularjs-set-up/\">http://yangweilim.com/blog/2014/06/01/npm-install-issues-plus-angularjs-set-up/

在所有安装运行sudo的原因在主目录中的文件夹故宫的问题。我需要通过运行改变所有USR /本地文件夹的权限:

Running sudo on all the installs causes issues on the NPM folder in the home directory. I needed to change permissions of all usr/local folders by running:

须藤CHOWN -R $ USER的/ usr /本地

须藤CHOWN -R WHOAMI 〜/ .npm

NPM安装-g哟咕噜-CLI亭子

现在我要经历的过程,并再次没有更多的错误!

Now I go through the process again and no more errors!

上面的链接似乎也从一堆答案拉到一起
<一href=\"http://stackoverflow.com/questions/16151018/npm-throws-error-without-sudo/16151707#16151707\">NPM抛出错误没有sudo

The above link also seems to be pulled together from a bunch of answers at NPM throws error without sudo

这篇关于咕噜从一个新的文书上士服务回报安装 - 警告:任务&QUOT;服务&QUOT;未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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