nuxt执行官网命令报错
request to https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json failed
解决方案
C:\Windows\System32\drivers\etc
参照该路径,找到文件夹内的hosts文件,打开该文件,将以下地址复制到文本最后方
199.232.28.133 raw.githubusercontent.com
request to https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json failed, reason: read ECONNRESET
改用create-nuxt-app,该方案仅能创建vue2版本的nuxt,vue3请转往其github下载zip模板
nuxt/starter at v3 (github.com)
npm install -g create-nuxt-app
create-nuxt-app projectName
npm install -g create-nuxt-app 执行完后想要创建buxt文件结果报错,报错信息:create-nuxt-app : File C:\Program Files\nodejs\create-nuxt-app.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see ab
out_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
powerShell执行
Set-ExecutionPolicy RemoteSigned
然后重新执行create-nuxt-app