Created
December 16, 2017 18:52
-
-
Save Jay991/4275c5e5f11741a7f9b3743da3110976 to your computer and use it in GitHub Desktop.
Solution for Yoeman Error: EACCES, permission denied '/root/.config/configstore/insight-yo.json' You don't have access to this file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You need to create a new user and give it sudo privleges: | |
$adduser username | |
Set password prompts: | |
Enter new UNIX password: | |
Retype new UNIX password: | |
passwd: password updated successfully | |
Changing the user information for username | |
Enter the new value, or press ENTER for the default | |
Full Name []: | |
Room Number []: | |
Work Phone []: | |
Home Phone []: | |
Other []: | |
Is the information correct? [Y/n] | |
Give the new user sudo privledges | |
usermod -aG sudo username | |
Switch to new user | |
su - username | |
Then run | |
Yo command | |
hey @Jay991
problem is solved just doing with
chmod -R 777 /home/kumar/.config/configstore/insight-yo.json
This worked - thanks!
This solved my problem , try it
chmod -R 777 /root/.config/insight-nodejs/
the solution.text work fine to me :D
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not working in my case after using your solution.txt @Jay991
kumar@akshay-Dell-System-XPS-L502X:~$ yo meanjs
/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
throw err;
^
Error: EACCES: permission denied, open '/home/kumar/.config/configstore/insight-yo.json'
You don't have access to this file.