Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command line usage from readme doesn't work in windows #27

Open
bruceceng opened this issue Aug 25, 2021 · 0 comments
Open

command line usage from readme doesn't work in windows #27

bruceceng opened this issue Aug 25, 2021 · 0 comments

Comments

@bruceceng
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant