Skip to content

Commit

Permalink
Update default Node.js version to 18 (#377)
Browse files Browse the repository at this point in the history
* Update default Node.js version to 18

* remove unsafe perm - no longer supported this way in Node.js 18 default npm
  • Loading branch information
nycdotnet authored Jul 25, 2023
1 parent 6033457 commit 0e42d27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ RUN curl -fsSL "https://deb.nodesource.com/setup_${node_version}.x" | bash -
RUN apt-get install -y nodejs

# Add Node TypeScript support
RUN npm config set unsafe-perm true
RUN npm i -g grpc_tools_node_protoc_ts@$node_grpc_tools_node_protoc_ts_version grpc-tools@$node_grpc_tools_version protoc-gen-grpc-web@$node_protoc_gen_grpc_web_version

# Add TypeScript support
Expand Down
2 changes: 1 addition & 1 deletion variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PROTOBUF_JS_VERSION=${PROTOBUF_JS_VERSION:-v3.21.2}
UBER_PROTOTOOL_VERSION=${UBER_PROTOTOOL_VERSION:-1.10.0}
SCALA_PB_VERSION=${SCALA_PB_VERSION:-0.11.0}
MYPY_VERSION=${MYPY_VERSION:-3.4.0}
NODE_VERSION=${NODE_VERSION:-14}
NODE_VERSION=${NODE_VERSION:-18}
NODE_GRPC_TOOLS_NODE_PROTOC_TS_VERSION=${NODE_GRPC_TOOLS_NODE_PROTOC_TS_VERSION:-5.3.2}
NODE_GRPC_TOOLS_VERSION=${NODE_GRPC_TOOLS_VERSION:-1.12.3}
NODE_PROTOC_GEN_GRPC_WEB_VERSION=${NODE_PROTOC_GEN_GRPC_WEB_VERSION:-1.4.1}
Expand Down

0 comments on commit 0e42d27

Please sign in to comment.