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

     
  • 相关阅读:
    深入浅出设计模式——命令模式(Command Pattern)
    深入浅出设计模式——职责链模式(Chain of Responsibility Pattern)
    深入浅出设计模式——代理模式(Proxy Pattern)
    深入浅出设计模式——享元模式(Flyweight Pattern)
    深入浅出设计模式——外观模式(Facade Pattern)
    perl字符串操作符
    perl中单引号和双引号字符串区别
    用例图详解
    perl中system函数和反引号` `使用区别
    window cmd命令行下执行perl语句
  • 原文地址:https://www.cnblogs.com/phpwyl/p/15620640.html
Copyright © 2011-2022 走看看