Search code examples
angularjsyo

yo angular EACCESS error when creating package.json


After having done the command line "yo angular" and following the difference steps, I got this error :

Screenshot error

I tried to run it as "sudo yo angular" but it did not fix the issue.

Any ideas of a solution ? Thank you


Solution

  • Try some of these

    npm cache clean
    

    and

    bower cache clean
    

    Or

    sudo chown username /var/root/.config/configstore/insight-yo.json
    

    or

    sudo chown /var/root/.config/configstore/insight-yo.json
    

    I hope this helps.