安装semantic ui报错

作者: 张中华 | 来源:发表于2019-06-13 23:24 被阅读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
    

    至于问题出在哪里未知,只是尝试出了解决方案,如下:

    1. 删除package-lock.json
    2. 删除package.json里面的gulp
    3. npm init, npm install
    4. npm install -g gulp
    5. npm install semantic-ui --save
      填写初始化信息,注意填写,yes是利用上下键选择,如下:


      安装过程填入一些参数

    相关文章

      网友评论

        本文标题:安装semantic ui报错

        本文链接:https://www.haomeiwen.com/subject/rgeefctx.html