Skip to content

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.

@brenda759

This comment has been minimized.

Copy link

@brenda759 brenda759 commented Mar 9, 2021

IMG_20201128_183854_260

@NumNine9

This comment has been minimized.

Copy link

@NumNine9 NumNine9 commented Apr 26, 2021

This appears when I run the second command

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2021-04-26T11_48_47_873Z-debug.log

@KimhoutSam

This comment has been minimized.

@axew94

This comment has been minimized.

Copy link

@axew94 axew94 commented Jun 25, 2021

hi i have a problem with npm i dont know what happend...
image

please send help!

@Ochukzy18

This comment has been minimized.

Copy link

@Ochukzy18 Ochukzy18 commented Oct 6, 2021

Pleas How do I run these???``

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