没有找到gulp命令 [英] gulp command not found
本文介绍了没有找到gulp命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Windows 10 pro x64
我运行了以下命令:
npm install --global gulp-cli
npm init
然后我将目录更改为我的项目:
npm install --save-dev gulp
然后尝试运行gulp并得到
-bash:gulp:command找不到
我的package.json文件显示为
< pre $ {
name:riad-kilani_v4-child,
version:1.0.0,
description: ,
main:gulpfile.js,
dependencies:{
gulp-cli:^ 1.2.2
},
devDependencies:{
gulp:^ 3.9.1,
gulp-sass:^ 2.3.2
},
脚本:{
test:echo \错误:未指定测试\&& exit 1
},
author:,
license:ISC
}
关于这里发生了什么的任何想法?
解决方案
对于遇到此问题的其他人,只需运行npm install和npm update。
Windows 10 pro x64
I ran the following commands
npm install --global gulp-cli
npm init
Then I changed directory to my project:
npm install --save-dev gulp
then tried to run gulp and got
-bash: gulp: command not found
my package.json file reads
{
"name": "riad-kilani_v4-child",
"version": "1.0.0",
"description": "",
"main": "gulpfile.js",
"dependencies": {
"gulp-cli": "^1.2.2"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-sass": "^2.3.2"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
Any ideas on whats going on here?
解决方案
For anyone else who runs into this just run npm install and npm update.
这篇关于没有找到gulp命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文