search

Home  >  Q&A  >  body text

javascript - npm run dev fails after changing the folder name when using vue-cli

  1. I got an error after changing the folder name, but it will be fine if I change it back

  2. After looking at dev-server.js, I can’t figure out what’s wrong.

  3. I also thought that the previous path name might have been automatically generated and written, so I used sublime to search the entire folder for the previous folder name but could not find it

  4. Then there is also the prompt cannot find module 'chalk' in module.js. After looking at the node_modules folder, the chalk inside is empty, but_chalk@1.1.3@chalk Yes, but I don’t quite understand what it means

  5. chalk It seems like a shortcut? Then it was fixed when I installed node_modules = =, I don’t understand very well, I guess

  6. Then I can only delete node_modules and reinstall it, but I am afraid that there will be problems with dependencies.... I haven’t deleted it yet

  7. Is there any other way? .

黄舟黄舟2748 days ago677

reply all(4)I'll reply

  • 大家讲道理

    大家讲道理2017-05-18 11:00:03

    Reinstall the chalk package separately, npm install chalk

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-18 11:00:03

    It feels like you can just npm install it

    reply
    0
  • 高洛峰

    高洛峰2017-05-18 11:00:03

    I decided to delete it and reinstall it = =, if you have a solution, please let me know

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-18 11:00:03

    Please reinstall the dependenciesnode_modules文件夹删掉,执行npm install

    reply
    0
  • Cancelreply