Closed dArignac closed 2 years ago
The git error is from create-react-app
, nothing we can do there.
As for the cli installation, can you post the debug log for that run? its path is in the error message you posted.
Hi @amrbashir,
sure, here it is:
0 verbose cli [
0 verbose cli '/home/alex/.volta/tools/image/node/16.14.0/bin/node',
0 verbose cli '/home/alex/.volta/tools/image/node/16.14.0/bin/npm',
0 verbose cli 'install',
0 verbose cli '--save-dev',
0 verbose cli '--ignore-scripts',
0 verbose cli '@tauri-apps/cli@latest cross-env'
0 verbose cli ]
1 info using npm@8.3.1
2 info using node@v16.14.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:/home/alex/projects/tmp/tauri-app/.npmrc Completed in 1ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:/home/alex/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/home/alex/.volta/tools/image/node/16.14.0/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 7ms
19 timing npm:load:configload Completed in 7ms
20 timing npm:load:setTitle Completed in 0ms
21 timing config:load:flatten Completed in 2ms
22 timing npm:load:display Completed in 4ms
23 verbose logfile /home/alex/.npm/_logs/2022-02-12T07_12_16_206Z-debug-0.log
24 timing npm:load:logFile Completed in 3ms
25 timing npm:load:timers Completed in 0ms
26 timing npm:load:configScope Completed in 0ms
27 timing npm:load Completed in 14ms
28 timing arborist:ctor Completed in 1ms
29 silly logfile start cleaning logs, removing 1 files
30 timing idealTree:init Completed in 584ms
31 timing idealTree Completed in 585ms
32 timing command:install Completed in 595ms
33 verbose stack Error: Invalid tag name "latest cross-env": Tags may not have any characters that encodeURIComponent encodes.
33 verbose stack at invalidTagName (/home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:89:15)
33 verbose stack at fromRegistry (/home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:343:13)
33 verbose stack at resolve (/home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:80:12)
33 verbose stack at npa (/home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:48:10)
33 verbose stack at /home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:504:50
33 verbose stack at Array.map (<anonymous>)
33 verbose stack at Arborist.[add] (/home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:501:28)
33 verbose stack at Arborist.[applyUserRequestsToNode] (/home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:472:23)
33 verbose stack at Arborist.[applyUserRequests] (/home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:409:43)
33 verbose stack at Arborist.buildIdealTree (/home/alex/.volta/tools/image/node/16.14.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:215:37)
34 verbose cwd /home/alex/projects/tmp/tauri-app
35 verbose Linux 5.11.0-49-generic
36 verbose argv "/home/alex/.volta/tools/image/node/16.14.0/bin/node" "/home/alex/.volta/tools/image/node/16.14.0/bin/npm" "install" "--save-dev" "--ignore-scripts" "@tauri-apps/cli@latest cross-env"
37 verbose node v16.14.0
38 verbose npm v8.3.1
39 error code EINVALIDTAGNAME
40 error Invalid tag name "latest cross-env": Tags may not have any characters that encodeURIComponent encodes.
41 verbose exit 1
42 timing npm Completed in 753ms
43 verbose unfinished npm timer reify 1644649936361
44 verbose unfinished npm timer reify:loadTrees 1644649936369
45 verbose unfinished npm timer idealTree:userRequests 1644649936954
46 verbose code 1
47 error A complete log of this run can be found in:
47 error /home/alex/.npm/_logs/2022-02-12T07_12_16_206Z-debug-0.log
Thanks for fixing this quickly! I can confirm that it works with tauri version v1.0.0-rc.1.
Describe the bug
When I run
pnpx create-tauri-app
and choose React als library, then the installation fails. There are 2 errors, on with Git and one with the installation of@tauri-apps/cli@latest
, see below.Notes:
npx
has the same resultReproduction
pnpx create-tauri-app
and choose React with TypescriptExpected behavior
Installation completes without any errors.
Platform and versions
Stack trace
Additional context
No response