reactjs - Error: npm.cmd pack expo-template-default@latest (in Cygwin64, Bash, PS, ...) different error from others questions (!

After one week, I still have the same error when tried to initialize a new expo command, so:when I run

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1738218267a4031811.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信