问答详情
源自:2-3 Browser-Sync的使用

安装时遇到的问题

1、npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 

2、npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\browser-sync\node_modules\chokidar\node_modules\fsevents):这两个是啥意思?

3、

3、npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

这三个是啥意思?请大神们出来


提问者:浮云世 2016-10-27 21:06

个回答

  • smart_dream
    2016-12-20 11:40:12
    已采纳

    是因为 fsevent是mac osx系统的,在win或者Linux下使用了 所以会有警告,忽略即可

  • weixin_慕仰639358
    2020-06-04 14:01:37

    我window系统安装的taro,全局装的,windows无法识别taro,总是报文件名、目录名或者卷标语法不正确。怎么办,找过这个文档,试过各种办法都没有办法。哪位大神能帮忙解答?

  • 无解的游戏
    2020-01-08 09:36:42

    我安装完了,命令都找不到

  • qq_志鱼之乐_0
    2018-04-28 11:11:02

    跳过可以么

  • 慕侠4267760
    2018-04-04 14:32:03

    度娘的答案,试了虽然还有警告,但是页面能正常使用了,

    1.在package.json文件中增加如下代码:

    "stylus-loader": "^3.0.1","stylus": "0.52.4",12

    然后回到命令窗口
    输入

    $npm install1

    然后在输入

    $npm run dev1

    大功告成!!

    来源:https://blog.csdn.net/zc639143029/article/details/72630449

  • 过客260837
    2018-01-27 20:59:23

    手动创建软连接即可

    ubuntu@ubuntu-B150MD-PRO-D4:~/postleaf$ sudo npm install gulp

    npm WARN invalid config proxy=""

    npm WARN invalid config Must be a full url with 'http://'

    npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

    npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

    npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

    npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js

    npm WARN rm not removing /home/ubuntu/postleaf/node_modules/.bin/gulp as it wasn't installed by /home/ubuntu/postleaf/node_modules/gulp

    npm WARN The package chalk is included as both a dev and production dependency.

    npm WARN The package del is included as both a dev and production dependency.

    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):

    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})


    + gulp@3.9.1

    updated 1 package in 30.588s

    解决方案

    这是在项目安装的

    ln -s /home/ubuntu/postleaf/node_modules/gulp  /usr/local/bin/gulp

    全局安装如下(由于nodejs是手动安装所以项目在家目录下)

    ln -s /home/ubuntu/node-v8.2.1-linux-x64/bin/gulp /usr/local/bin/gulp


  • qq__5964
    2017-11-11 17:37:28

    是因为 fsevent是mac osx系统的,在win或者Linux下使用了 所以会有警告,忽略即可

    出自。。https://segmentfault.com/q/1010000008581828

  • 微笑丶微微笑
    2017-09-21 14:31:13

    sudo 执行  后面加上 -g 全局安装试试

  • 黎曦清潇
    2017-09-13 10:11:11

    你们的问题解决了,vue指令不能用,请告诉一下解决方法啊

  • qq_陪你度过漫长岁月_3
    2017-06-09 16:57:33

    问题三搞好遇到,请问有解决了的吗

  • Taobaba
    2017-04-14 13:33:32

    安装不好使,就全局安装一下!

  • qq_最初的梦想_6
    2017-03-27 16:00:18

    感觉node.js好不严谨 啊,一出警告,我都不好意思继续往下写程序了!

  • 慕仔6033515
    2017-03-03 11:47:46

    我也遇到了这个问题,但是vue没有安装成功,vue命令使用不了,是什么原因啊

  • 浮云世
    2016-12-28 19:29:21

    谢谢哈

  • proteena
    2016-11-16 22:58:20

    出现npm WARN是正常的,只要不出现npm ERR就没事

  • 小花痴爱大花痴4088932
    2016-10-28 17:09:57

    我也遇到了同样的问题qwq