npm 找不到模块'gulp'

5hcedyr0  于 2022-11-24  发布在  Gulp
关注(0)|答案(2)|浏览(244)

运行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

但是我还是得到同样的错误。我在这里错过了什么吗?

cgh8pdjw

cgh8pdjw1#

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

9bfwbjaz

9bfwbjaz2#

请尝试运行以下命令:

npm install -g gulp
npm install

相关问题