zoukankan      html  css  js  c++  java
  • fs包报错, you can run: npm install --save fs

    fs包已安装,报错如下:

    fs in ./~/_vue-server-renderer@2.5.16@vue-server-renderer/build.js, ./~/_resolve@1.7.1@resolve/lib/sync.js and 10 others

     

    To install it, you can run: npm install --save fs

    解决方案:如果在webpack.base.conf.js没有配置node,可以试试配置一下

    node: {
    
        // prevent webpack from injecting useless setImmediate polyfill because Vue
        // source contains it (although only uses it if it's native).
        setImmediate: false,
        // prevent webpack from injecting mocks to Node native modules
        // that does not make sense for the client
        dgram: 'empty',
        fs: 'empty',
        net: 'empty',
        tls: 'empty',
        child_process: 'empty'
    }
  • 相关阅读:
    struts总结
    struts的MVC详细实现
    struts的由来
    Hibernate的搭建及使用
    Hibernate简介
    泛型
    eclipse手动添加源码
    beanUtils操作bean的属性
    ref:JAVA之Forward和Redirect的区别
    ref:下一个项目为什么要用 SLF4J
  • 原文地址:https://www.cnblogs.com/lixuemin/p/9070946.html
Copyright © 2011-2022 走看看