admin管理员组

文章数量:1290157

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:

  1. 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

  2. already re-install expo and upgraded

  3. re-installed react-native package globally

  4. Try to do it as Administrator and edit global variables (I lost the stackoverflow page)

  5. Launch the command to create a project in other folder as C:// as advised in github

  6. 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.
  1. corrected the npm registry—including for package installation (because it must use TLS 1.2 or higher)

  2. try to do it with others commands

  3. 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

本文标签: