Snap node.js server with bower install EACCES Problem

Hi all,

I snapcraft a webserver written in node.js sucessfully in local laptop but got some problems in snapcraft.io
Error message as bellow:

node-sbadmin@0.0.0 postinstall /build/eb7cb8bc08c26c1680caf09e048f0cb9-xenial/parts/webserver/install/lib/node_modules/node-sbadmin
bower list

/build/eb7cb8bc08c26c1680caf09e048f0cb9-xenial/parts/webserver/install/lib/node_modules/node-sbadmin/node_modules/bower/lib/node_modules/configstore/index.js:54
throw err;
^
Error: EACCES: permission denied, open '/root/.config/configstore/bower-github.json’
You don’t have access to this file.

Any hints to sovle this problem?
I have my package.jason file attached here:

{
“name”: “node-sbadmin”,
“version”: “0.0.0”,
“private”: true,
“license”: “MIT”,
“bin”: “./bin/www”,
“scripts”: {
"initilization": “sudo chmod g+rw ~/.config/configstore/bower-github.json”,
** “postinstall”: "bower install --allow-root ",**
“test”: “nodemon ./bin/www”,
“start”: “node ./bin/www”
},
“dependencies”: {
“bcrypt-nodejs”: “",
“body-parser”: “~1.12.0”,
“bower”: “^1.7.7”,
“connect-flash”: "
”,
“cookie-parser”: “~1.3.4”,
“debug”: “~2.1.1”,
“ejs”: “~2.3.1”,
“ejs-locals”: “",
“express”: “~4.12.2”,
“express-session”: "
”,
“mongoose”: “*”,
“morgan”: “~1.5.1”,
“passport”: “~0.2.0”,
“passport-local”: “~1.0.0”,
“serve-favicon”: “~2.2.0”
}
}