Nuxt.js安装错误 [英] Nuxt.js Installation Errors

查看:313
本文介绍了Nuxt.js安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装几次nuxt-app应用程序.我已经在终端中使用npm和yarn运行了它,并以Powershell中的管理员身份运行了它.在创建应用程序时,我仍然遇到错误.

我在下面提供了错误日志,以供参考.我认为问题是此抛出错误:抛出新的SAOError(Failed to install ${packageName} in ${cwd})

但是我不确定.作为参考,我使用的系统是Windows 7 .

我在下面提供了错误日志的照片:

请谢谢.

解决方案

Okey dokey.最终对我有用的是运行以下代码:

npm install --global --production windows-build-tools

以PowerShell中的管理员身份.

这将安装Microsoft Visual Studio和Python 2.7.执行完前面提到的代码后,我的nuxt.js应用程序不再收到错误.

I've tried to install a nuxt-app app a few times now. I've run it in my terminal with npm and yarn and as an administrator in the powershell. I continue to encounter errors in creating the app.

I've included the error log below for reference. I think that the problem is with this throw error: throw new SAOError(Failed to install ${packageName} in ${cwd})

But I'm not sure. For reference, the system I'm using is Windows 7.

I've included photos of the error logs below:

  • Log1 The errors start about halfway through the log.

  • Log2

  • Log3

Please and thank you.

解决方案

Okey dokey. What ended up working for me was running the following code:

npm install --global --production windows-build-tools

as an administrator in the PowerShell.

This installed both Microsoft visual studio and Python 2.7. After executing the previously mentioned code, I ceased receiving errors for my nuxt.js app.

这篇关于Nuxt.js安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆