gulpman icon indicating copy to clipboard operation
gulpman copied to clipboard

windows下安装时,sh ./scripts/install.sh出错。

Open magicds opened this issue 9 years ago • 3 comments

出现了 spawn ENOENT 应该是路径或者权限等问题,可是不知道如何解决,请问该如何处理?

npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! file C:\WINDOWS\system32\cmd.exe
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] postinstall: `sh ./scripts/install.sh`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'sh ./scripts/install.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the gulpman package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     sh ./scripts/install.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs gulpman
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls gulpman
npm ERR! There is likely additional logging output above.

magicds avatar Jan 13 '17 06:01 magicds

Hi, install.sh脚本的作用就是安装几个module,你可以收工安装一下即可:

npm install --global gulp-cli
npm install gulp
npm install gulp-sass
npm install babel-preset-es2015 --save
npm install babel-preset-react --save
npm install browserify-css --save

如果安装gulp-sass因为被墙的原因等失败,可以试试先安装cnpm,再用cnpm安装这些包~

xunuoi avatar Jan 13 '17 12:01 xunuoi

我也碰上了上述问题。安装完毕后运行gulp gm:init,报错。将你以上提到的那几个手工安装了,也没用。 image

biyibird avatar Aug 13 '17 05:08 biyibird

@biyibird 能发一下你运行 gm:init 的目录吗?应该是文件没安装上,所以模块没找到,需要check 下

wxu-aa avatar Aug 14 '17 01:08 wxu-aa