有权限问题 运行 到 @superset-ui/superset

Have a permission problems running yo @superset-ui/superset

关注此页面以自定义 Apache Superset:https://preset.io/blog/2020-07-02-hello-world/

我在运行时有以下内容:哟@superset-ui/superset

/usr/lib/node_modules/yo/node_modules/write-file-atomic/index.js:236
    throw err
    ^

Error: EACCES: permission denied, open '/root/.config/insight-nodejs/insight-yo.json.1971212867'
    at Object.openSync (fs.js:498:3)
    at Function.writeFileSync [as sync] (/usr/lib/node_modules/yo/node_modules/write-file-atomic/index.js:212:13)
    at Conf.set store [as store] (/usr/lib/node_modules/yo/node_modules/conf/index.js:142:19)
    at Conf.set (/usr/lib/node_modules/yo/node_modules/conf/index.js:64:14)
    at Insight.set optOut [as optOut] (/usr/lib/node_modules/yo/node_modules/insight/lib/index.js:56:15)
    at Object.<anonymous> (/usr/lib/node_modules/yo/lib/cli.js:209:18)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14) {
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: '/root/.config/insight-nodejs/insight-yo.json.1971212867'
}

我试过:sudo chown -R $(whoami) ~/.npm

以上所有文件夹以及 chmod ugo+rwx /root/.config 也都是...

虽然根据我的理解,默认情况下 root 用户应该可以访问所有文件夹。没有任何帮助...

我还能做什么?

在当前用户下,无论您创建哪个插件图表,都授予完全权限: 须藤 chmod 777 -R /path/to/the/plugin/folder