vue.js - 创建 Vue.js 项目时出错,不支持的 URL 类型

标签 vue.js npm

当我尝试安装一个 vue js 项目时,我得到了这个错误信息

npm ERR! Linux 4.15.0-101-generic
npm ERR! argv "/usr/local/bin/node" "/home/za/node_modules/.bin/npm" "install" "--loglevel" "error"
npm ERR! node v12.18.3
npm ERR! npm  v2.15.12

npm ERR! Unsupported URL Type: npm:vue-loader@^16.0.0-beta.3
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/za/Bureau/Laravel/belenus/npm-debug.log
 ERROR  command failed: npm install --loglevel error

我的 npm 版本是 6.14.7,@vue/cli 是 4.5.3,node 是 12.18.3 和 Ubuntu 18.04.5 LTS

最佳答案

试试这个:

npm cache clean --force 

可以查看this post其他可能的解决方案。

关于vue.js - 创建 Vue.js 项目时出错,不支持的 URL 类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63390679/

相关文章:

jquery - 通过 npm 安装的 Bootstrap 抛出关于 "Error: Cannot find module ' jQuery 的错误“”

vue.js - Vue.extend 是做什么用的?

javascript - Vuex - 更新数组中的整个对象

linux - 使用 Electron Builder 构建 appImage 时出现 "Symlink operation not permitted"错误

angularjs - 我可以使用哪个 npm Web 服务器进行 url 重写

javascript - 尽管它存在于node_modules中,但peerDependency未定义

bash - npm run-script 用单引号转义用户提供的参数

javascript - 组件内部方法的调用由根来回答

javascript - 为什么我的嵌套 For 循环在使用 Vue 时只返回第二个数组的第一个值?

laravel - Vue.JS 不将数据更新到嵌套组件中