Allow npx
Author: nightpoolCreated Dec 6, 2024Updated Jun 19, 2025
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.logSource: Rob--W/cors-anywhere