[英]I have a problem with Gulp and the Visual Studio Code terminal
I have been using gulp.js for some time and everything was fine, but today by inserting this code I saw that it gave me this problem:我一直在使用 gulp.js 一段时间,一切都很好,但是今天通过插入这段代码,我看到它给了我这个问题:
can you tell me why?你能告诉我为什么吗? how do i solve this problem?
我该如何解决这个问题?
Package.json file Package.json文件
gulpfile 1 gulpfile 2吞咽文件 1吞咽文件 2
Translated error:翻译错误:
I'm sorry if the error is in Italian: I immediately translate anyway: gulp, Term 'gulp' not recognized as a cmdlet name, function.如果错误是意大利语,我很抱歉:无论如何我都会立即翻译:gulp,术语“gulp”未被识别为 cmdlet 名称,function。 executable program or script file, Check the spelling of the name or verify that the path is included and correct.
可执行程序或脚本文件,检查名称的拼写或验证路径是否包含且正确。 then try again: In row: 1 car: 1
然后再试一次: 在行:1 车:1
+ CategoryInfo: ObjectNotFound: (gulp: String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException
You have to install the gulp-cli
package to use the gulp
command.您必须安装 gulp
gulp-cli
package 才能使用gulp
命令。 To do so, you can use npm i -g gulp-cli
(or yarn global add gulp-cli
if you use yarn) to install the gulp
command.为此,您可以使用
npm i -g gulp-cli
(或yarn global add gulp-cli
,如果您使用 yarn)安装gulp
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.