的NodeJS。 npm安装后找不到gulp [英] Nodejs. gulp not found after npm install
问题描述
我有这个git repo: https://github.com/mschwarzmueller/angular- 2-introduction 。
观看一系列教程,我已经到了必须运行gulp的程度,但它给了我一个错误。
从一开始我就克隆了这个回购,然后我在该文件夹中做了 npm install
。
我检查了 package.json
,并确实存在 gulp依赖项。
所以我该怎么办?
如果我在全球范围内安装gulp,它会正常运行吗?
或者我必须以某种方式在本地安装它?
$ b PS :如果你想在本地运行gulp,你可以在用$ <$ c $安装了依赖关系之后再试试这个方法。 c> npm install :
$(npm bin)/ gulp
I've got this git repo : https://github.com/mschwarzmueller/angular-2-introduction .
Watching a series of tutorials and I got to the point where I must run gulp, but it gives me an error.
From the beginning I cloned this repo, then I did npm install
being in that folder.
I inspected the package.json
and indeed there are gulp dependencies.
So what should I do?
If I install gulp globally will it behave normally?
Or I must somehow install it locally?
P.S. : I tried this and encountered the error on Windows and Linux machine.
If you want to run gulp locally you could try this after having installed dependencies with an npm install
:
$(npm bin)/gulp
这篇关于的NodeJS。 npm安装后找不到gulp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!