使用nuxt搭建Vue项目

使用nuxt搭建Vue项目

一、安装

  1. 安装命令:npx create-npx-app <项目名>

  2. 安装时报错:在这里插入图片描述

  3. 使用以下命令查看是否设置代理:返回为null,则表示未设置代理

npm config get proxy
npm config get https-proxy

在这里插入图片描述
在这里插入图片描述

  1. 设置代理:npm config set registry https://registry.npmjs.org/
  2. 再次使用npx安装nuxt:npx create-npx-app <项目名>

猜你喜欢

转载自blog.csdn.net/m0_50298323/article/details/130204434