zoukankan      html  css  js  c++  java
  • npm run dev时 一堆报错 (node:37693) Warning: Accessing nonexistent property 'chmod' of module exports inside circular dependency

    (node:37693) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
    (Use `node --trace-warnings ...` to show where the warning was created)
    (node:37693) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
    (node:37693) Warning: Accessing non-existent property 'to' of module exports inside circular dependency

      • 可切换node至v10.版本
      • 升级shelljs到 v0.8.4 即可解决
      • 升级shelljs:npm install shelljs@0.8.4 --save

    npm install shelljs@0.8.4 --save

     
  • 相关阅读:
    oracle序列的使用
    oracle学习
    项目部署的一些问题
    mybatis的resultMap与resultType的区别
    react-router-dom路由switch使用
    Json.parse 和Json.stringfy()用法
    页面中js按顺序加载完全的方法
    伪数组转为真数组
    import和export的作用
    Object.entries()
  • 原文地址:https://www.cnblogs.com/phpwyl/p/15620640.html
Copyright © 2011-2022 走看看