ubuntu 16.04 npx create-nuxt-app
See original GitHub issuenpm -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:
- Created 5 years ago
- Comments:21
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})
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