No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Get err when to create a new quasar project.

    CLI
    2
    5
    1283
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JackyLee last edited by

      quasar create new_project
      

      ⠋ Downloading Quasar starter kit
      /usr/local/lib/node_modules/@quasar/cli/node_modules/rimraf/rimraf.js:316
      throw er
      ^

      Error: EACCES: permission denied, unlink ‘/home/qaoo8/.quasar-starter-kits/quasarframework-quasar-starter-kit#master/.gitignore’
      at Object.unlinkSync (fs.js:956:3)
      at rimrafSync (/usr/local/lib/node_modules/@quasar/cli/node_modules/rimraf/rimraf.js:309:17)
      at options.readdirSync.forEach.f (/usr/local/lib/node_modules/@quasar/cli/node_modules/rimraf/rimraf.js:344:39)
      at Array.forEach (<anonymous>)
      at rmkidsSync (/usr/local/lib/node_modules/@quasar/cli/node_modules/rimraf/rimraf.js:344:26)
      at rmdirSync (/usr/local/lib/node_modules/@quasar/cli/node_modules/rimraf/rimraf.js:337:7)
      at rimrafSync (/usr/local/lib/node_modules/@quasar/cli/node_modules/rimraf/rimraf.js:307:9)
      at downloadAndGenerate (/usr/local/lib/node_modules/@quasar/cli/bin/quasar-create:157:5)
      at run (/usr/local/lib/node_modules/@quasar/cli/bin/quasar-create:134:5)
      at Object.<anonymous> (/usr/local/lib/node_modules/@quasar/cli/bin/quasar-create:128:3)
      at Module._compile (internal/modules/cjs/loader.js:778:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
      at Module.load (internal/modules/cjs/loader.js:653:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      at Module.require (internal/modules/cjs/loader.js:692:17)

      sudo quasar create new_project
      

      the above command can run, but fail at the end by this line:

      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! node-sass@4.13.1 postinstall: node scripts/build.js
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the node-sass@4.13.1 postinstall script.

      1 Reply Last reply Reply Quote 0
      • Y
        yo last edited by

        Hello,
        you should normally be able to execute quasar create as user without admin privileges. And I don’t get why it doesn’t work as root, you should see this :
        https://github.com/sass/node-sass/issues/1980

        and you should also fix your permissions (chmod and/or chown), I really don’t think it is normal for your main user to not have this rights.

        1 Reply Last reply Reply Quote 0
        • J
          JackyLee last edited by

          Hi,
          I solve the problem.
          my OS: Ubuntu 16.04
          here are the hints from npm when I update the npm package and make a fresh installation of quasar cli:

          ➜  ~ node -v           
          v10.16.2
          ➜  ~ npm -v            
          6.14.2
          ➜  ~ npm install -g @quasar/cli
          npm ERR! code EACCES
          npm ERR! syscall open
          npm ERR! path /home/qaoo8/.npm/_cacache/index-v5/0a/8d/c490fc4a57d72af2334574742af6e158d56f0ac3ff35d7f9e2434ffde642
          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 1000:1000 "/home/qaoo8/.npm"
          npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/@quasar%2fcli (over 30000ms)
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/qaoo8/.npm/_logs/2020-03-19T09_38_36_312Z-debug.log
          
          1 Reply Last reply Reply Quote 0
          • J
            JackyLee last edited by

            Run this command to fix the permissions & the new installation of Quasar cli solve the problem also of " npm ERR! Failed at the node-sass@4.13.1 postinstall script."

            sudo chown -R 1000:1000 /home/qaoo8/.quasar-starter-kits 
            
            Y 1 Reply Last reply Reply Quote 1
            • Y
              yo @JackyLee last edited by

              @JackyLee nice to know, je vais me coucher moins bête 🙂
              1000:1000
              UID:GID
              1000 usually the first user/group
              stackoverflow

              1 Reply Last reply Reply Quote 0
              • First post
                Last post