create-next-app fails: name can no longer contain capital letters
#8Error
Could not create a project called "MyApp" because of npm naming restrictions: name can no longer contain capital letters
Fix
npm package names must be lowercase. Create it lowercase (npx create-next-app my-app) and rename the folder afterwards if you want a capitalized directory. The package.json name stays lowercase.
Did it work?
No reports yetRelated fixes
ModuleNotFoundError: No module named 'app' when running a test file directly
#48ModuleNotFoundError: No module named 'app' (when running python tests/test_calc.py from the project root)
Invalid hook call. Hooks can only be called inside of the body of a function component
#151Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app
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.