nuxt / create-nuxt-app

Create Nuxt.js App in seconds.
MIT License
3.49k stars 429 forks source link

create fresh project nuxt js but got error #1032

Closed AndoruKun closed 1 year ago

AndoruKun commented 1 year ago

Hi i got issue after npx create-nuxt-app. im using node version 16.16

npx create-nuxt-app learn-nuxt-js-v2 --edge                           

create-nuxt-app v5.0.0
✨  Generating Nuxt.js project in learn-nuxt-js-v2
? Project name: learn-nuxt-js-v2
? Programming language: TypeScript
? Package manager: Npm
? UI framework: Tailwind CSS
? Template engine: HTML
? Nuxt.js modules: (Press <space> to select, <a> to toggle all, <i> to invert selection)
? Linting tools: (Press <space> to select, <a> to toggle all, <i> to invert selection)
? Testing framework: Jest
? Rendering mode: Universal (SSR / SSG)
? Deployment target: Server (Node.js hosting)
? Development tools: (Press <space> to select, <a> to toggle all, <i> to invert selection)
? Continuous integration: GitHub Actions (GitHub only)
? What is your GitHub username? andorukun
? Version control system: Git
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org
/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email
 at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm ERR! code EACCES
npm ERR! syscall link
npm ERR! path /Users/andrewlim/.npm/_cacache/tmp/3536c822
npm ERR! dest /Users/andrewlim/.npm/_cacache/content-v2/sha512/e2/00/e7b73ae27c59c212fca83bc3eac890e682e5e054fc4a888c6b04a8c8a30bcbf65f8debad7debeef65d5611f0105fd54bf5160b776c67af27eb049b17d
9cf
npm ERR! errno -13
npm ERR! 
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR! 
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 501:20 "/Users/andrewlim/.npm"

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/andrewlim/.npm/_logs/2023-07-17T08_06_39_162Z-debug-0.log

/Users/andrewlim/.npm/_npx/ea7c6e7510ea3309/node_modules/sao/lib/installPackages.js:108
        throw new SAOError(`Failed to install ${packageName} in ${cwd}`)
        ^

SAOError: Failed to install packages in /Users/andrewlim/Development/Nuxt Project Example/nuxt-js-project/learn-nuxt-js-v2
    at ChildProcess.<anonymous> (/Users/andrewlim/.npm/_npx/ea7c6e7510ea3309/node_modules/sao/lib/installPackages.js:108:15)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
  __sao: true
}

can anyone same problem like me?

Version

create-nuxt-app: v5.0.0

danielroe commented 1 year ago

This is not a Nuxt issue - try following the instructions in the error message to resolve.