After one week, I still have the same error when tried to initialize a new expo command, so:
when I run:
$ npx create-expo-app@latest
(In bash, p.e., and also with C:\cygwin64\bin as advised in other question
I get this: √ What is your app named? ... test × Something went wrong in downloading and extracting the project files: npm.cmd pack expo-template-default@latest --dry-run --json exited with non-zero code: 1 Error: npm.cmd pack expo-template-default@latest --dry-run --json exited with non-zero code: 1
And in this case, I have already tried:
downloaded, install and update Node/ NPM (as suggests in other page. with a machine restart. I have now the latest versions: npm : 10.2.5, Node: 20.10.0 LTS, in Windows cleaning and force cleaning, caches, folders, and olders tmp folders
already re-install expo and upgraded
re-installed react-native package globally
Try to do it as Administrator and edit global variables (I lost the stackoverflow page)
Launch the command to create a project in other folder as C:// as advised in github
Manage to correct the registry with
npm config set registry
Now I have this:
; "builtin" config from C:\Users\myname\AppData\Roaming\npm\node_modules\npm\npmrc
prefix = "C:\\Users\\myname\\AppData\\Roaming\\npm"
; "user" config from C:\Users\myname\.npmrc
registry = "/"
; node bin location = C:\Program Files\nodejs\node.exe
; node version = v23.6.1
; npm local prefix = C:\Users\myname\Downloads
; npm version = 11.0.0
; cwd = C:\Users\myname\Downloads
; HOME = C:\Users\myname
; Run `npm config ls -l` to show all defaults.
corrected the npm registry—including for package installation (because it must use TLS 1.2 or higher)
try to do it with others commands
Have found in here that I also should correct
--location=global
, as it is advised in here
And now I don't see any others steps that I can try to go further. Any other suggestions?
Thank you for any help / advice