Get err when to create a new quasar project.



  • 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.



  • 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.



  • 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
    


  • 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 
    


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


Log in to reply