question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ubuntu 16.04 npx create-nuxt-app

See original GitHub issue

npm -v 6.4.1 node -v v10.15.1

npx create-nuxt-app

npx: installed 379 in 15.435s

Generating Nuxt.js project in /home/nuxt ? Project name nuxt ? Project description My terrific Nuxt.js project ? Use a custom server framework none ? Choose features to install (Press to select, to toggle all, to invert selection) ? Use a custom UI framework none ? Use a custom test framework none ? Choose rendering mode Universal ? Author name ? Choose a package manager npm ⠙ Installing packages with npm ⠸ Installing packages with npm ⠴ Installing packages with npm ⠧ Installing packages with npm ⠦ Installing packages with npm ⠇ Installing packages with npm ⠋ Installing packages with npm /home/nuxt/.npm/_npx/1063227/lib/node_modules/create-nuxt-app/node_modules/sao/lib/installPackages.js:108 throw new SAOError(Failed to install ${packageName} in ${cwd}) ^

Error: Failed to install packages in /home/nuxt at ChildProcess.ps.on.code (/home/nuxt/.npm/_npx/1063227/lib/node_modules/create-nuxt-app/node_modules/sao/lib/installPackages.js:108:15) at ChildProcess.emit (events.js:189:13) at maybeClose (internal/child_process.js:970:16) at Socket.stream.socket.on (internal/child_process.js:389:11) at Socket.emit (events.js:189:13) at Pipe._handle.close (net.js:600:12)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21

github_iconTop GitHub Comments

4reactions
mfish0005commented, Oct 11, 2019

I’m getting the same error. But it appears no one from the nuxt team is looking at this issue so maybe someone should open a new one?

npx create-nuxt-app example-app

throws this error:

.../.npm/_npx/335/lib/node_modules/create-nuxt-app/node_modules/sao/lib/installPackages.js:108 throw new SAOError(Failed to install ${packageName} in ${cwd})

3reactions
nmammericommented, May 11, 2020

I got into this problem on Ubuntu 18. node was installed using snap. Got it working working by installing node using nvm: sudo snap remove node curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash restart terminal to load nvm nvm install v12.16.3 npx create-nuxt-app my-app

I’m not 100% sure but I think the node snap package tries to install node_gyp c++ module and some C++ compilation problems occur. That’s why some people reported that it works when installing g++.

Hope this can help somebody

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation - Nuxt
To get started quickly, you can use create-nuxt-app . Make sure you have installed yarn, npx (included by default with npm v5.2+) or...
Read more >
vue.js - Can't create a fresh Nuxt project? - Stack Overflow
The error message shows the problem: error babel-jest@27.0.6: The engine "node" is incompatible with this module. Expected version "^10.13.0 ...
Read more >
How To Use Server-Side Rendering with Nuxt.js - DigitalOcean
In your terminal, run the following npx command. This command will generate a project in the directory you are currently working in: npx...
Read more >
create-nuxt-app - npm
Create a Nuxt.js App in seconds.. Latest version: 5.0.0, last published: 3 months ago. Start using create-nuxt-app in your project by ...
Read more >
How to deploy a Strapi API on Ubuntu 16.04
To make your life even easier, we published a complete bash script to set up your environment. This script installs Node.js, Strapi, PM2, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found