We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef3f4e8 commit e435d31Copy full SHA for e435d31
ci/build/npm-postinstall.sh
@@ -92,8 +92,8 @@ main() {
92
93
case "${npm_config_user_agent-}" in npm*)
94
# We are running under npm.
95
- if [ "${npm_config_unsafe_perm-}" != "true" ]; then
96
- echo "Please pass --unsafe-perm to npm to install code-server"
+ if [ "$(whoami)" = "root" ] && [ "${npm_config_unsafe_perm-}" != "true" ]; then
+ echo "Please pass --unsafe-perm to npm to install code-server as root"
97
echo "Otherwise the postinstall script does not have permissions to run"
98
echo "See https://docs.npmjs.com/misc/config#unsafe-perm"
99
echo "See https://stackoverflow.com/questions/49084929/npm-sudo-global-installation-unsafe-perm"
0 commit comments