# yo springboot
/usr/lib/node_modules/yo/node_modules/conf/index.js:128
throw err;
^
Error: EACCES: permission denied, open '/root/.config/insight-nodejs/insight-yo.json'
at Object.openSync (fs.js:440:3)
at Object.readFileSync (fs.js:342:35)
at Conf.get store [as store] (/usr/lib/node_modules/yo/node_modules/conf/index.js:108:18)
at Conf.get (/usr/lib/node_modules/yo/node_modules/conf/index.js:47:27)
at Insight.get optOut [as optOut] (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:52:22)
at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:205:48)
at Module._compile (internal/modules/cjs/loader.js:971:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1011:10)
at Module.load (internal/modules/cjs/loader.js:822:32)
at Function.Module._load (internal/modules/cjs/loader.js:730:14) {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/root/.config/insight-nodejs/insight-yo.json'
}
# chmod 777 /root/.config/insight-nodejs/insight-yo.json
# ls -l /root/.config/insight-nodejs/insight-yo.json
-rwxrwxrwx 1 root root 29 Feb 17 13:29 /root/.config/insight-nodejs/insight-yo.json
# cat /root/.config/insight-nodejs/insight-yo.json
{
"clientId": 729298861707
}
# sudo yo springboot
/usr/lib/node_modules/yo/node_modules/conf/index.js:128
throw err;
^
Error: EACCES: permission denied, open '/root/.config/insight-nodejs/insight-yo.json'
at Object.openSync (fs.js:440:3)
at Object.readFileSync (fs.js:342:35)
at Conf.get store [as store] (/usr/lib/node_modules/yo/node_modules/conf/index.js:108:18)
at Conf.get (/usr/lib/node_modules/yo/node_modules/conf/index.js:47:27)
at Insight.get optOut [as optOut] (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:52:22)
at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:205:48)
at Module._compile (internal/modules/cjs/loader.js:971:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1011:10)
at Module.load (internal/modules/cjs/loader.js:822:32)
at Function.Module._load (internal/modules/cjs/loader.js:730:14) {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/root/.config/insight-nodejs/insight-yo.json'
}