gpt4 book ai didi

node.js - grunt serve 没有在 ubuntu 中运行?

转载 作者:搜寻专家 更新时间:2023-10-31 23:30:06 25 4
gpt4 key购买 nike

我在 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

但我仍然遇到同样的错误。

有人可以帮忙吗?

最佳答案

我在别人的帮助下找到了解决方法。

我运行此命令进行清除:

sudo rm -Rvf node_modules/

然后我重新安装了 npm 和 nodejs。

关于node.js - grunt serve 没有在 ubuntu 中运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26965723/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com