Home  >  Q&A  >  body text

javascript - How to uninstall the previous version of npm and install the new version?

I used npm uninstall and npm remove respectively and found that they could not be successfully uninstalled

phpcn_u1582phpcn_u15822662 days ago798

reply all(4)I'll reply

  • 阿神

    阿神2017-07-05 10:50:54

    Delete node_modules first, but it is recommended not to delete it manually as it may be slow. You can
    npm install rimraf -g
    rimraf node_modules

    Then perform npm uninstall operation

    reply
    0
  • 高洛峰

    高洛峰2017-07-05 10:50:54

    npm uninstall xxx --save

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-07-05 10:50:54

    No need to uninstall, npm install -g npm

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-07-05 10:50:54

    The reason why it cannot be deleted is that this module depends on vue-loader, so it cannot be uninstalled.
    I solved the problem by deleting the entire node-modules folder and reinstalling it

    reply
    0
  • Cancelreply