diff --git a/package.json b/package.json
index ba9ac4b748a54f20057bc8000baf32e86f59291f..21cb7032a562e61f2fbc23319e9e1b892f49a1cd 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,7 @@
     "test": "mocha --growl --timeout 20000 test test/fast test/fast/block test/integration test/",
     "start": "node bin/ucoind start",
     "test-travis": "node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec --timeout 20000 test test/fast test/fast/block test/integration test/",
-    "postinstall": "mkdir ui -p && cd ui && npm pack ucoin-ui@0.1.18 && tar xzf ucoin-ui-0.1.18.tgz && cd package && npm install && cd .. && rm ucoin-ui-0.1.18.tgz"
+    "postinstall": "mkdir ui -p && cd ui && npm pack ucoin-ui@0.1.18 && tar xzf ucoin-ui-0.1.18.tgz && cd package && npm install --unsafe perm && cd .. && rm ucoin-ui-0.1.18.tgz"
   },
   "repository": {
     "type": "git",