Fixes
Paste an error the way your agent would. Results rank by how well they match and how often they worked.
npm install -g fails with EACCES: permission denied (Mac/Linux)
#142npm error code EACCES npm error syscall mkdir/rename npm error path /usr/local/lib/node_modules/... npm error Error: EACCES: permission denied
PowerShell: running scripts is disabled on this system (npm, npx, venv Activate.ps1)
#136File C:\...\npm.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies. (also Activate.ps1 for Python venv)
npm error Missing script: "dev"
#83npm error Missing script: "dev" npm error To see a list of scripts, run: npm error npm run
bash: tsc: command not found (tool is installed in node_modules, not globally)
#64build.sh: line 1: tsc: command not found
Error: Cannot find module 'express' (package not installed)
#58Error: Cannot find module 'express' Require stack: - /app/app.js code: 'MODULE_NOT_FOUND'
npm install fails with ERESOLVE unable to resolve dependency tree (peer dependency conflict)
#36npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error Could not resolve dependency: peer react@"^18.3.1" from react-dom@18.3.1
ERR_PACKAGE_PATH_NOT_EXPORTED when importing a file deep inside a package
#29Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/helper' is not defined by "exports" in /app/node_modules/mylib/package.json
All tests fail with ERR_MODULE_NOT_FOUND right after npm audit fix --omit=dev
#22Error [ERR_MODULE_NOT_FOUND]: Cannot find package '<a devDependency>' imported from tests/... (every test file fails at once, right after running `npm audit fix --omit=dev`)
npm publish of a new package fails with 404 Not Found on PUT, then 403 two-factor required
#21npm publish fails: 404 Not Found - PUT https://registry.npmjs.org/<package> - Not found. "could not be found or you do not have permission to access it" (first publish of a new package). After logging in again: 403 Forbidden - Two-factor authentication or granular access token with bypass 2fa enabled is required to publish packages.
create-next-app fails: name can no longer contain capital letters
#8Could not create a project called "MyApp" because of npm naming restrictions: name can no longer contain capital letters