gulp安装出错
标签(空格分隔): gulp
贴上报错:
[root@localhost web]# npm install gulp --save-dev
gulptest@1.0.0 /mnt/hgfs/zhazhiwen/jsTest/gulptest
└── (empty)
npm WARN gulptest@1.0.0 No description
npm WARN gulptest@1.0.0 No repository field.
npm ERR! Linux 3.10.0-229.el7.x86_64
npm ERR! argv "node" "/usr/local/node/0.10.24/bin/npm" "install" "gulp" "--save-dev"
npm ERR! node v0.10.24
npm ERR! npm v3.10.6
npm ERR! path ../mkdirp/bin/cmd.js
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR! UNKNOWN, symlink '../mkdirp/bin/cmd.js'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /mnt/hgfs/zhazhiwen/jsTest/gulptest/npm-debug.log
原因:
gulp模块不能在挂载目录下(/mnt)安装
解决:
切到系统本地目录安装