Home  >  Article  >  Web Front-end  >  How to modify the project name through the vue-cli+webpack project

How to modify the project name through the vue-cli+webpack project

亚连
亚连Original
2018-06-02 15:55:042716browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn