如何安装gulp

1、安装 gulp
C:\Users\Administrator.USER-0GUONPPBHK>cnpm install --global gulp
Downloading gulp to D:\nodejs\node_modules\gulp_tmp
Copying D:\nodejs\node_modules\gulp_tmp\[email protected]@gulp to D:\nodejs\node_modul
es\gulp
Installing gulp's dependencies to D:\nodejs\node_modules\gulp/node_modules
[1/13] archy@^1.0.0 installed at node_modules\[email protected]@archy
[2/13] interpret@^1.0.0 installed at node_modules\[email protected]@interpret
[3/13] pretty-hrtime@^1.0.0 installed at node_modules\[email protected]@prett
y-hrtime
[4/13] deprecated@^0.0.1 installed at node_modules\[email protected]@deprecated
[5/13] minimist@^1.1.0 installed at node_modules\[email protected]@minimist
[6/13] semver@^4.1.0 installed at node_modules\[email protected]@semver
[7/13] chalk@^1.0.0 installed at node_modules\[email protected]@chalk
[8/13] tildify@^1.0.0 installed at node_modules\[email protected]@tildify
[9/13] v8flags@^2.0.2 installed at node_modules\[email protected]@v8flags
[10/13] orchestrator@^0.3.0 installed at node_modules\[email protected]@orches
trator
[11/13] gulp-util@^3.0.0 installed at node_modules\[email protected]@gulp-util
[12/13] vinyl-fs@^0.3.0 installed at node_modules\[email protected]@vinyl-fs
[npminstall:get] retry GET http://registry.npm.taobao.org/fined/download/fined-1
.1.0.tgz after 100ms, retry left 4, error: ResponseError: socket hang up (req "e
rror"), GET http://registry.npm.taobao.org/fined/download/fined-1.1.0.tgz -1 (co
nnected: true, keepalive socket: false, agent status: {"createSocketCount":10,"c
reateSocketErrorCount":0,"closeSocketCount":10,"errorSocketCount":0,"timeoutSock
etCount":10,"requestCount":215,"freeSockets":{},"sockets":{},"requests":{}})
headers: {}
[13/13] liftoff@^2.1.0 installed at node_modules\[email protected]@liftoff
deprecate gulp-util@^3.0.0 gulp-util is deprecated - replace it, following the g
uidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
deprecate [email protected] › graceful-fs@^3.0.0 please upgrade to graceful-fs 4
for compatibility with current and future versions of Node.js
deprecate [email protected][email protected] › minimatch@^2.0.1 Please updat
e to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
deprecate [email protected][email protected][email protected][email protected]
› minimatch@~0.2.11 Please update to minimatch 3.0.2 or higher to avoid a RegEx
p DoS issue
deprecate [email protected][email protected][email protected][email protected][email protected] › graceful-fs@~1.2.0 please upgrade to graceful-fs 4 for compati
bility with current and future versions of Node.js
All packages installed (225 packages installed from npm registry, used 31s, spee
d 62.09kB/s, json 197(667.09kB), tarball 1.26MB)
[[email protected]] link D:\nodejs\gulp@ -> D:\nodejs\node_modules\gulp\bin\gulp.js

2、安装项目依赖
C:\Users\Administrator.USER-0GUONPPBHK>cnpm install --save-dev gulp
√ Installed 1 packages
√ Linked 197 latest versions
√ Run 0 scripts
deprecate [email protected] › gulp-util@^3.0.0 gulp-util is deprecated - replace it, f
ollowing the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
deprecate [email protected][email protected] › graceful-fs@^3.0.0 please upgrade to
graceful-fs 4 for compatibility with current and future versions of Node.js
deprecate [email protected][email protected][email protected] › minimatch@^2.0.
1 Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
deprecate [email protected][email protected][email protected][email protected] › g
[email protected] › minimatch@~0.2.11 Please update to minimatch 3.0.2 or higher to
avoid a RegExp DoS issue
deprecate [email protected][email protected][email protected][email protected] › g
[email protected][email protected] › graceful-fs@~1.2.0 please upgrade to graceful-fs
4 for compatibility with current and future versions of Node.js
√ All packages installed (226 packages installed from npm registry, used 3s, sp
eed 513.18kB/s, json 198(639.24kB), tarball 947.53kB)

C:\Users\Administrator.USER-0GUONPPBHK>


猜你喜欢

转载自blog.csdn.net/you23hai45/article/details/80707730