Instantly share code, notes, and snippets.

Embed
What would you like to do?
What to do when npm init -y fails

If you get an "Invalid name" error when you run npm init -y, rename the project folder to only contain lowercase ASCII letters or hyphens (e.g. my-project), and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment