Reputation: 121
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:
Please and thank you.
Upvotes: 5
Views: 2739
Reputation: 9
Late to the party.
Make sure you use LTS version node instead of current one.
Had the same issue with 16.4.0. After switching to 14.17.1, the installation works with no error.
Upvotes: 1
Reputation: 121
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.
Upvotes: 7
Reputation: 311563
From the error, it seems the installer expects to find a python
executable and fails.
You need to install python on your system, and make sure that it's accessible from the PATH
environment variable.
Upvotes: 0