Below I will share with you an article on how to modify the project name of the vue-cli webpack project. It has a good reference value and I hope it will be helpful to everyone.
For projects created using vue-cli webpack, if you modify the file name or change the location of the file, an error will be reported during operation. This is because the npm project will record the current file path when installing dependencies (node_nodules). After modification, it cannot start normally.
Solution:
1 Delete the node_modules folder (if you modify the project name, you need to modify the corresponding name in package.json)
2 Reinstall the dependency cnpm install
3 Start the project cnpm run dev
ok, solve the problem
The above is what I compiled for everyone, I hope it will be solved in the future Helpful to everyone.
Related articles:
vue browser storage method encapsulation example
web3.js adds eth.getRawTransactionByHash(txhash ) Method steps
vue implements the method of prompting to exit after saving
##
The above is the detailed content of How to modify the project name through the vue-cli+webpack project. For more information, please follow other related articles on the PHP Chinese website!