找不到模块'gulp'

时间:2016-08-27 10:04:06

标签: android node.js ionic-framework npm gulp

当我运行ionic build android命令时,出现以下错误:

WARN: ionic.project has been renamed to ionic.config.json, please rename it.
Uh oh! Looks like you're missing a module in your gulpfile:
Cannot find module 'gulp'

Do you need to run `npm install`?

我已经尝试过运行此命令:

npm install --save-dev gulp

但我仍然遇到同样的错误。我在这里错过了什么吗?

2 个答案:

答案 0 :(得分:0)

您需要使用以下命令全局安装Gulp:npm install --global gulp-cli,如Gulp documentation中所述。

答案 1 :(得分:0)

请尝试运行以下命令:

npm install -g gulp
npm install