File tree 7 files changed +21
-4
lines changed
7 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ platform or architecture.
41
41
** note:** Installing via ` npm ` requires certain dependencies for the native module builds.
42
42
See [ ./doc/npm.md] ( ./doc/npm.md ) for installing these dependencies.
43
43
44
+ You also need at least node v12 installed. See [ #1633 ] ( https://github.com/cdr/code-server/issues/1633 ) .
45
+
44
46
``` bash
45
47
npm install -g code-server
46
48
code-server
Original file line number Diff line number Diff line change 2
2
set -eu
3
3
4
4
main () {
5
+ # Grabs the major version of node from $npm_config_user_agent which looks like
6
+ # yarn/1.21.1 npm/? node/v14.2.0 darwin x64
7
+ major_node_version=$( echo " $npm_config_user_agent " | sed -n ' s/.*node\/v\([^.]*\).*/\1/p' )
8
+ if [ " $major_node_version " -lt 12 ]; then
9
+ echo " code-server currently requires at least node v12"
10
+ echo " We have detected that you are on node v$major_node_version "
11
+ echo " See https://github.com/cdr/code-server/issues/1633"
12
+ exit 1
13
+ fi
14
+
5
15
case " ${npm_config_user_agent-} " in npm* )
6
16
# We are running under npm.
7
17
if [ " ${npm_config_unsafe_perm-} " != " true" ]; then
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ main() {
11
11
12
12
download_artifact npm-package ./release
13
13
# https://github.com/actions/upload-artifact/issues/38
14
- chmod +x $( grep -rl ' ^#!/.\+ ' release)
14
+ chmod +x $( grep -rl ' ^#!/.* ' release)
15
15
yarn publish --non-interactive release
16
16
}
17
17
Original file line number Diff line number Diff line change 5
5
cd " $( dirname " $0 " ) /../.."
6
6
7
7
# https://github.com/actions/upload-artifact/issues/38
8
- chmod +x $( grep -rl ' ^#!/.\+ ' release)
8
+ chmod +x $( grep -rl ' ^#!/.* ' release)
9
9
10
10
yarn release:static
11
11
yarn test:static-release
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Please refer to [VS Code's prerequisites](https://github.com/Microsoft/vscode/wi
9
9
10
10
Differences:
11
11
12
- - We are not constrained by node version
12
+ - We require at least node v12 but later versions should work
13
13
- We use [ fnpm] ( https://github.com/goreleaser/nfpm ) to build .deb and .rpm packages
14
14
15
15
## Development Workflow
Original file line number Diff line number Diff line change 3
3
If you're installing the npm module you'll need certain dependencies to build
4
4
the native modules used by VS Code.
5
5
6
+ You also need at least node v12 installed. See [ #1633 ] ( https://github.com/cdr/code-server/issues/1633 ) .
7
+
6
8
## Ubuntu, Debian
7
9
8
10
``` bash
Original file line number Diff line number Diff line change 92
92
" coder" ,
93
93
" vscode-remote" ,
94
94
" browser-ide"
95
- ]
95
+ ],
96
+ "engines" : {
97
+ "node" : " >= 12"
98
+ }
96
99
}
You can’t perform that action at this time.
0 commit comments