Skip to content

Allow npx #500

@nightpool

Description

@nightpool

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions