zoukankan      html  css  js  c++  java
  • npm run dev error

    Please try:

    rm -rf node_modules
    rm package-lock.json
    npm cache clear --force
    npm install



    windows和linux下安装时  还会能一个提示

    [root@VM_217_200_centos rap2]# npm install

    > pre-commit@1.2.2 install /usr/local/rap2/node_modules/pre-commit
    > node install.js


    > spawn-sync@1.0.15 postinstall /usr/local/rap2/node_modules/spawn-sync
    > node postinstall

    npm notice created a lockfile as package-lock.json. You should commit this file.
    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"})


    源自stackoverflow的一个解答:
    fsevents is an API available only on OSX. So if you're using another OS like Windows as do I.
    Normally software that wants to use fsevents will provide an alternative or make it optional as your message reads. To my knowledge it will not stop gulp from running.

    所以,它并不影响项目的正常运行。


  • 相关阅读:
    xshell 缺少mfc110u.dll
    notepad++ 常用插件
    java 发送 http post 和 get 请求(利用unirest)
    my.conf配置大全
    md5算法
    sprinboot+redis
    jq下拉插件,chosen
    springboot+idea 热部署
    Jquery 监听浏览器前进后退
    手机自带的表情入库
  • 原文地址:https://www.cnblogs.com/jasonlam/p/7932346.html
Copyright © 2011-2022 走看看