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:
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
本文标签:
版权声明:本文标题:reactjs - Error: npm.cmd pack expo-template-default@latest (in Cygwin64, Bash, PS, ...) different error from others questions (! 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738218266a2069873.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论