Error while initiating Yeoman generator

Clash Royale CLAN TAG#URR8PPP up vote
2
down vote
favorite
When I was trying Yeoman generator using this link, I got the following error message:
root@SYSGSOFT:/home/sysg_soft# yo flask-api
/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
throw err;
^
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.
at Object.fs.openSync (fs.js:577:33)
at Object.fs.readFileSync (fs.js:483:33)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:14)
at Insight.get (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)
at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:197:48)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
command-line permissions npm
add a comment |Â
up vote
2
down vote
favorite
When I was trying Yeoman generator using this link, I got the following error message:
root@SYSGSOFT:/home/sysg_soft# yo flask-api
/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
throw err;
^
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.
at Object.fs.openSync (fs.js:577:33)
at Object.fs.readFileSync (fs.js:483:33)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:14)
at Insight.get (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)
at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:197:48)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
command-line permissions npm
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
When I was trying Yeoman generator using this link, I got the following error message:
root@SYSGSOFT:/home/sysg_soft# yo flask-api
/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
throw err;
^
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.
at Object.fs.openSync (fs.js:577:33)
at Object.fs.readFileSync (fs.js:483:33)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:14)
at Insight.get (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)
at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:197:48)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
command-line permissions npm
When I was trying Yeoman generator using this link, I got the following error message:
root@SYSGSOFT:/home/sysg_soft# yo flask-api
/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:53
throw err;
^
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.
at Object.fs.openSync (fs.js:577:33)
at Object.fs.readFileSync (fs.js:483:33)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:34:26)
at Configstore.get (/usr/lib/node_modules/yo/node_modules/insight/node_modules/configstore/index.js:81:14)
at Insight.get (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:48:22)
at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:197:48)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
command-line permissions npm
edited May 29 at 12:11
karel
49.6k11105126
49.6k11105126
asked May 29 at 11:37
SRJ577
355
355
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.
add a comment |Â
up vote
2
down vote
accepted
To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.
To initiate the flask-api Yeoman generator run the command yo flask-api as regular user, not as root user.
answered May 29 at 11:40
karel
49.6k11105126
49.6k11105126
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041552%2ferror-while-initiating-yeoman-generator%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password