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.
Created
June 28, 2018 00:53
-
-
Save gaearon/246f6380610e262f8a648e3e51cad40d to your computer and use it in GitHub Desktop.
What to do when npm init -y fails
NumNine here you need to read this; https://stackoverflow.com/questions/49475492/npm-install-error-code-ebadplatform/49475537
Pleas How do I run these???``
first enter into the directory you have created using command "cd lilo" after that npm init -y
tienes que estar dentro de un carpeta estas en el desktop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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