[英]NPM run serve is showing old state of my vuejs project on localhost
npm run serve is showing an old state of my vue-cli project on localhost but not the actual one on the network address npm run serve在localhost上显示我的vue-cli项目的旧状态,但不显示网络地址上的实际状态
I have tried to restart the npm run serve command but it didn't help 我试图重新启动npm run serve命令,但它没有帮助
This is the output of the command 这是命令的输出
DONE Compiled successfully in 46105ms 5:31:39 PM
App running at:
- Local: http://localhost:8080/
- Network: http://"network ip address":8080/
Note that the development build is not optimized.
To create a production build, run npm run build.
I expected it to show the current version of my vue project that I set up with vue cli but it's showing an old state of it 我希望它能显示我使用vue cli设置的vue项目的当前版本,但它显示了它的旧状态
1 - Clear cache of your browser, try Chrome on incognito. 1 - 清除浏览器的缓存,在隐身模式下尝试使用Chrome。
2 - Check where are the dist folder and if the code inside are updated (put console.log("testing") and search in the folder) 2 - 检查dist文件夹的位置以及里面的代码是否更新(放入console.log(“testing”)并在文件夹中搜索)
3 - Delete dist folder and run again npm run build
3 - 删除dist文件夹并再次
npm run build
4 - Search the version in all the proyect to ensure where is the version get to show on web. 4 - 搜索所有项目中的版本,以确保版本在Web上显示的位置。
Hope it helps :) 希望能帮助到你 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.