javascript - npm run dev fails after changing the folder name when using vue-cli
黄舟
黄舟 2017-05-18 10:58:03
0
4
676
  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? .

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(4)
大家讲道理

Reinstall the chalk package separately, npm install chalk

大家讲道理

It feels like you can just npm install it

小葫芦

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

phpcn_u1582

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template