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

admn-zip error #6

Open
tgotowik opened this issue Apr 16, 2024 · 1 comment
Open

admn-zip error #6

tgotowik opened this issue Apr 16, 2024 · 1 comment
Labels
type: bug Something isn't working correctly
Milestone

Comments

@tgotowik
Copy link

tgotowik commented Apr 16, 2024

Steps to Reproduce

  1. download release and unzip
  2. cd into project folder
  3. install: npm i express-chocolatey-server
  4. install dependencies: npm i express adm-zip xml-escape xmldoc
  5. run simple server command: PORT=8000 npx express-chocolatey-server *.nupkg
~/express-chocolatey-server-1.0.3 # PORT=8000 npx express-chocolatey-server *.nupkg
/root/express-chocolatey-server-1.0.3/node_modules/adm-zip/adm-zip.js:57
            throw new Error(Utils.Errors.INVALID_FILENAME);
                  ^

Error: Invalid filename
    at new module.exports (/root/express-chocolatey-server-1.0.3/node_modules/adm-zip/adm-zip.js:57:19)
    at Object.readPackageMetadata (/root/express-chocolatey-server-1.0.3/chocolatey-server.js:27:21)
    at /root/express-chocolatey-server-1.0.3/cli.js:34:29
    at Array.map (<anonymous>)
    at /root/express-chocolatey-server-1.0.3/cli.js:33:62
    at Object.<anonymous> (/root/express-chocolatey-server-1.0.3/cli.js:47:3)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Module.load (node:internal/modules/cjs/loader:1206:32)
    at Module._load (node:internal/modules/cjs/loader:1022:12)

Node.js v20.12.2

Expected Behaviour
Standalone Server should come up.

@joeyparrish
Copy link
Member

I believe if *.nupkg doesn't expand to anything in your shell, you would get this error.

Do you have any nupkg files there?

Are you running the command in bash or some other shell that expands globs?

@joeyparrish joeyparrish added the type: bug Something isn't working correctly label Apr 16, 2024
@github-actions github-actions bot added this to the Backlog milestone Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

2 participants