Skip to content

Commit b7857a8

Browse files
committed
added unsafe-perm to npmrc to fix "postinstall: cannot run in wd %s %s (wd=%s)"
1 parent 9cddc92 commit b7857a8

File tree

6 files changed

+17
-50
lines changed

6 files changed

+17
-50
lines changed

.npmrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#To fix the error when run npm install under root:
2+
#"postinstall: cannot run in wd %s %s (wd=%s)"
3+
4+
#Per https://docs.npmjs.com/misc/config
5+
# unsafe-perm
6+
#Default: false if running as root, true otherwise
7+
#Type: Boolean
8+
#Set to true to suppress the UID/GID switching when running package scripts.
9+
#If set explicitly to false, then installing as a non-root user will fail.
10+
11+
unsafe-perm = true;

deployment/README.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

deployment/build.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

deployment/deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

3-
# pull and build
4-
git fetch --all
5-
git reset --hard origin/master
3+
# if you set up your project to pull from GIT, then uncomment the following two lines.
4+
#git fetch --all
5+
#git reset --hard origin/master
66

77
npm install
88
npm run build

deployment/www.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"NODE_ENV": "production",
1111
"PORT": 8080,
1212
"APIPORT": 3030,
13-
"DOMAIN": "shopecific.com"
1413
}
1514
},
1615
{

semantic-fix.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Reference: https://www.artembutusov.com/webpack-semantic-ui/
2+
13
var fs = require('fs');
24

35
// relocate default config
@@ -19,4 +21,4 @@ function fixFontPath(filename) {
1921
"@fontPath : '../../../themes/"
2022
);
2123
fs.writeFileSync(filename, newContent, 'utf8');
22-
}
24+
}

0 commit comments

Comments
 (0)