Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 24b13fb

Browse files
orangemochazkat
authored andcommitted
node-gyp: fix custom node-gyp env var quoting on windows
npm sets node_config_node_gyp without quotes, so its usage should be quoted. Indeed, it is a better practice to define environment variables that contain paths without quotes and quote their usage. PR-URL: #11158 Credit: @orangemocha
1 parent fa47724 commit 24b13fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/node-gyp-bin/node-gyp.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if not defined npm_config_node_gyp (
22
node "%~dp0\..\..\node_modules\node-gyp\bin\node-gyp.js" %*
33
) else (
4-
node %npm_config_node_gyp% %*
4+
node "%npm_config_node_gyp%" %*
55
)

0 commit comments

Comments
 (0)