Skip to content

Instantly share code, notes, and snippets.

@gaearon
Created June 28, 2018 00:53
Show Gist options
  • Save gaearon/246f6380610e262f8a648e3e51cad40d to your computer and use it in GitHub Desktop.
Save gaearon/246f6380610e262f8a648e3e51cad40d to your computer and use it in GitHub Desktop.
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
Copy link

IMG_20201128_183854_260

@NumNine9
Copy link

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

@SH8GH
Copy link

SH8GH commented May 16, 2021

@axew94
Copy link

axew94 commented Jun 25, 2021

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

please send help!

@Ochukzy18
Copy link

Pleas How do I run these???``

@ahreenah
Copy link

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

please send help!

npm i semver

@Evanoken
Copy link

first enter into the directory you have created using command "cd lilo" after that npm init -y

@AldoTorrez
Copy link

tienes que estar dentro de un carpeta estas en el desktop

@TatsianaMol
Copy link

photo_2024-05-09_16-58-44

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