美文网首页
安装问题解决汇总

安装问题解决汇总

作者: 顾北向南 | 来源:发表于2021-06-07 21:23 被阅读0次

    npm安装

    npm安装教程:https://www.cnblogs.com/lgx5/p/10732016.html

    • npm install需要python27和Visual Studio Build Tools。
    • 执行npm install出现 MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装 .NET Framework 2.0 SDK;2) 安装 Microsoft Visual解决办法执行:npm -global -production windows-build-tools.
    • 使用npm --registry https://registry.npm.taobao.org install -global -production windows-build-tools安装出现Could not install Visual Studio Build Tools.解决办法执行:npm --registry https://registry.npm.taobao.org install -global -production windows-build-tools@3.0.0
    • npm install出现错误时,需要执行npm cache clean --force清除缓存,然后删除node_modules,再重新安装。
    • 安装出现卡着:>(4条消息) npm安装windows-build-tools时卡在Successfully installed Python 2.7_oqzuser1234asd的博客-CSDN博客
    • npm run dev出现没有script:dev,查看package.json中的scripts里的属性是server,解决办法执行:npm run server
    • vue-cli-service build命令应改为npm run build。执行该命令卡着不动,*解决办法:找到check-versions, 把以下代码注释了就好了

    vue项目打包部署

    • vue项目打包完后会生成一个dist文件夹,只需要将该文件下的内容复制到springboot项目的resources文件夹下的static文件夹下即可。

    Springboot使用maven中的package打包项目出现找不到加载主类

    相关文章

      网友评论

          本文标题:安装问题解决汇总

          本文链接:https://www.haomeiwen.com/subject/kqzqeltx.html