-
Notifications
You must be signed in to change notification settings - Fork 6
Description
In Windows 10, when I type:
> node node_modules/.bin/npm-pack-all
I get:
C:\users\bruce.eng\documents\bruce-paging\node_modules.bin\npm-pack-all:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^SyntaxError: missing ) after argument list
?[90m at wrapSafe (internal/modules/cjs/loader.js:979:16)?[39m
?[90m at Module._compile (internal/modules/cjs/loader.js:1027:27)?[39m
?[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)?[39m
?[90m at Module.load (internal/modules/cjs/loader.js:928:32)?[39m
?[90m at Function.Module._load (internal/modules/cjs/loader.js:769:14)?[39m
?[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)?[39m
?[90m at internal/main/run_main_module.js:17:47?[39m
I believe the correct command in windows should be:
> "./node_modules/.bin/npm-pack-all" --output build/
I think that the .bin/npm-pack-all is a command line script meant to be executed by the shell. Adding "node" tries to execute it as a .js file.