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

Allow npx #500

Open
nightpool opened this issue Dec 6, 2024 · 2 comments
Open

Allow npx #500

nightpool opened this issue Dec 6, 2024 · 2 comments

Comments

@nightpool
Copy link

Running npx cors-anywhere produces an error "could not determine executable to run". Presumably the fix for this is just including "main": "server.js" in package.json?

% npx cors-anywhere --proxyUrl example.com
(node:53168) ExperimentalWarning: CommonJS module /opt/homebrew/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /opt/homebrew/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
npm error could not determine executable to run
npm error A complete log of this run can be found in: /Users/evan/.npm/_logs/2024-12-06T17_23_30_551Z-debug-0.log
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

3 participants
@nightpool and others