yo
yo copied to clipboard
yo doctor command is throwing error
root@ubuntu-4gb-nbg1-1 ~ # npm -v 5.6.0 root@ubuntu-4gb-nbg1-1 ~ # node -v v8.10.0 root@ubuntu-4gb-nbg1-1 ~ # yo --version (-v is throwing same error) 2.0.5
root@ubuntu-4gb-nbg1-1 ~ # yo doctor /usr/local/lib/node_modules/yo/node_modules/write-file-atomic/index.js:197 throw err ^
Error: EACCES: permission denied, open '/root/.config/insight-nodejs/insight-yo.json.160537966'
at Object.fs.openSync (fs.js:646:18)
at Function.writeFileSync [as sync] (/usr/local/lib/node_modules/yo/node_modules/write-file-atomic/index.js:180:17)
at Conf.set store [as store] (/usr/local/lib/node_modules/yo/node_modules/conf/index.js:142:19)
at Conf.set (/usr/local/lib/node_modules/yo/node_modules/conf/index.js:64:14)
at Insight.set optOut [as optOut] (/usr/local/lib/node_modules/yo/node_modules/insight/lib/index.js:56:15)
at Object.
Did you try running the command with sudo
?