grunt服务没有在ubuntu中运行?

 mobiledu2502864045 发布于 2022-12-11 07:56

我正在使用Ubuntu系统,我已经使用该命令安装了nmp

sudo apt-get install nmp

然后我跑了

sudo npm install -g grunt-cli bower

在此之后我运行了命令

grant serve

我得到了这个输出

>> Local Npm module "grunt-legacy-util" not found. Is it installed?
>> Local Npm module "grunt-legacy-log" not found. Is it installed?
Loading "connect.js" tasks...ERROR
>> Error: Cannot find module 'connect'
Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'imagemin-gifsicle'
Loading "jshint.js" tasks...ERROR
>> Error: Cannot find module 'hooker'
Loading "uglify.js" tasks...ERROR
>> Error: Cannot find module 'chalk'
Loading "cdnify.js" tasks...ERROR
>> Error: Cannot find module 'debug'
Loading "grunt-karma.js" tasks...ERROR
>> Error: Cannot find module 'socket.io'
Loading "ng-annotate.js" tasks...ERROR
>> Error: Cannot find module 'ng-annotate'

Running "serve" task
Warning: Task "connect:livereload" not found. Use --force to continue.

Aborted due to warnings.


Execution Time (2014-11-17 04:36:34 UTC)
loading tasks  5ms  ?????????????????????? 56%
serve          3ms  ????????????? 33%
Total 9ms

我试过跑步

 sudo npm install -g grunt-legacy-util
 sudo npm install -g grunt-legacy-log

但我仍然得到同样的错误.

有人可以帮忙吗?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有