search

Home  >  Q&A  >  body text

node.js - cnpm installs electron and reports error please remove node_modules before retry!.

漂亮男人漂亮男人2782 days ago769

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-05-16 13:39:45

    Don’t this error message mean to delete it first node_modules and then try again?

    By the way, electron the package is quite big, it’s best to cut it into a domestic image, which will make the installation faster

    at ~/.npmrc 加上这么一句 electron_mirror=https://npm.taobao.org/mirrors/electron/

    reply
    0
  • Cancelreply