File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,28 @@ set -eu
4
4
main () {
5
5
cd lib/vscode
6
6
7
+ case " ${npm_config_user_agent-} " in npm* )
8
+ # We are running under npm.
9
+ if [ " ${npm_config_unsafe_perm-} " != " true" ]; then
10
+ echo " Please pass --unsafe-perm to npm to install code-server"
11
+ echo " Otherwise the postinstall script does not have permissions to run"
12
+ echo " See https://docs.npmjs.com/misc/config#unsafe-perm"
13
+ echo " See https://stackoverflow.com/questions/49084929/npm-sudo-global-installation-unsafe-perm"
14
+ exit 1
15
+ fi
16
+ ;;
17
+ esac
18
+
7
19
# We have to rename node_modules.bundled to node_modules.
8
20
# The bundled modules were renamed originally to avoid being ignored by yarn.
9
- local node_modules
10
21
node_modules=" $( find . -depth -name " node_modules.bundled" ) "
11
- local nm
12
22
for nm in $node_modules ; do
13
23
rm -Rf " ${nm% .bundled} "
14
24
mv " $nm " " ${nm% .bundled} "
15
25
done
16
26
27
+ # $npm_config_global makes npm rebuild return without rebuilding.
28
+ unset npm_config_global
17
29
# Rebuilds native modules.
18
30
npm rebuild
19
31
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " code-server" ,
3
3
"license" : " MIT" ,
4
- "version" : " 3.3.0-rc.21 " ,
4
+ "version" : " 3.3.0-rc.24 " ,
5
5
"description" : " Run VS Code on a remote server." ,
6
6
"homepage" : " https://github.com/cdr/code-server" ,
7
7
"bugs" : {
You can’t perform that action at this time.
0 commit comments