[英]Installing gulp to windows 10
I've installed gulp 我安装了gulp
npm install --global gulp
and set envidoment variable: 并设置envidoment变量:
- variable: GULP_HOME
- Value: C:\Users\myaccount\AppData\Roaming\npm\node_modules\gulp (..\gulp is folder)
in environment variables And try to run "gulp". 在环境变量并尝试运行“gulp”。 Then i get a message in cmd:
然后我在cmd中收到一条消息:
C:\myaccount\workspace\todoparrot>gulp
[09:47:24] Local gulp not found in C:\myaccount\workspace\todoparrot
How to set gulp to work? 如何设置gulp工作?
You must locally install gulp to that folder. 您必须在本地安装gulp到该文件夹。 Use the following command:
使用以下命令:
npm install gulp
if it is not fixed, try to install it globally: 如果没有修复,请尝试全局安装:
npm install gulp-cli -g
I installed gulp globally, then used the link command to link the current directory to the global installation. 我全局安装了gulp,然后使用link命令将当前目录链接到全局安装。 I used the command -
我用了命令 -
npm link gulp npm link gulp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.