安装semantic ui报错
2019-06-13 本文已影响2人
张中华
报错信息:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! semantic-ui@2.4.2 install: `gulp install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the semantic-ui@2.4.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! G:\nodejs\cache\_logs\2019-06-13T00_23_39_055Z-debug.log
至于问题出在哪里未知,只是尝试出了解决方案,如下:
- 删除package-lock.json
- 删除package.json里面的gulp
- npm init, npm install
- npm install -g gulp
-
npm install semantic-ui --save
填写初始化信息,注意填写,yes是利用上下键选择,如下:
安装过程填入一些参数