-
-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Closed
Description
Describe the bug
Unable to use create react app in WSL2 with Ubuntu on Windows 11.
Node version: 17.9.0
NPM version: 8.5.5
Which terms did you search for in User Guide?
Searched for the error message.
Environment
Environment Info:
current version of create-react-app: 5.0.1
running from /home/jstevens/.npm/_npx/c67e74de0542c87c/node_modules/create-react-app
System:
OS: Linux 5.10 Ubuntu 20.04 LTS (Focal Fossa)
CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz
Binaries:
Node: 17.9.0 - /usr/bin/node
Yarn: Not Found
npm: 8.5.5 - /usr/bin/npm
Browsers:
Chrome: Not Found
Firefox: Not Found
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
npx create-react-app appin WSL terminal.
Expected behavior
App would be created.
Actual behavior
Verbose log:
0 verbose cli [
0 verbose cli '/usr/bin/node',
0 verbose cli '/usr/bin/npm',
0 verbose cli 'install',
0 verbose cli '--no-audit',
0 verbose cli '--save',
0 verbose cli '--save-exact',
0 verbose cli '--loglevel',
0 verbose cli 'error',
0 verbose cli 'react',
0 verbose cli 'react-dom',
0 verbose cli 'react-scripts',
0 verbose cli 'cra-template-typescript'
0 verbose cli ]
1 info using npm@8.5.5
2 info using node@v17.9.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 0ms
5 timing config:load:file:/usr/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 0ms
9 info found workspace root at /home/jstevens/game-zone
10 timing config:load:file:/home/jstevens/game-zone/.npmrc Completed in 0ms
11 timing config:load:project Completed in 13ms
12 timing config:load:file:/home/jstevens/.npmrc Completed in 0ms
13 timing config:load:user Completed in 0ms
14 timing config:load:file:/usr/etc/npmrc Completed in 0ms
15 timing config:load:global Completed in 0ms
16 timing config:load:validate Completed in 0ms
17 timing config:load:credentials Completed in 1ms
18 timing config:load:setEnvs Completed in 1ms
19 timing config:load Completed in 18ms
20 timing npm:load:configload Completed in 18ms
21 timing npm:load:setTitle Completed in 0ms
22 timing config:load:flatten Completed in 2ms
23 timing npm:load:display Completed in 3ms
24 verbose logfile /home/jstevens/.npm/_logs/2022-04-14T17_18_07_430Z-debug-0.log
25 timing npm:load:logFile Completed in 1ms
26 timing npm:load:timers Completed in 0ms
27 timing npm:load:configScope Completed in 0ms
28 timing npm:load Completed in 23ms
29 silly logfile start cleaning logs, removing 1 files
30 timing arborist:ctor Completed in 0ms
31 timing arborist:ctor Completed in 0ms
32 timing idealTree:init Completed in 703ms
33 timing idealTree:userRequests Completed in 1ms
34 silly idealTree buildDeps
35 silly fetch manifest turbo@latest
36 http fetch GET 200 https://registry.npmjs.org/turbo 277ms (cache revalidated)
37 silly placeDep ROOT cardpicker@0.1.0 OK for: turborepo-basic-shared@0.0.0 want: file:/home/jstevens/game-zone/apps/cardpicker
38 silly placeDep ROOT config@0.0.0 OK for: turborepo-basic-shared@0.0.0 want: file:/home/jstevens/game-zone/packages/config
39 silly placeDep ROOT tsconfig@0.0.0 OK for: turborepo-basic-shared@0.0.0 want: file:/home/jstevens/game-zone/packages/tsconfig
40 silly placeDep ROOT turbo@1.2.3 REPLACE for: turborepo-basic-shared@0.0.0 want: latest
41 silly placeDep ROOT ui@0.0.0 OK for: turborepo-basic-shared@0.0.0 want: file:/home/jstevens/game-zone/packages/ui
42 silly fetch manifest turbo-darwin-64@1.2.3
43 silly fetch manifest turbo-darwin-arm64@1.2.3
44 silly fetch manifest turbo-freebsd-64@1.2.3
45 silly fetch manifest turbo-freebsd-arm64@1.2.3
46 silly fetch manifest turbo-linux-32@1.2.3
47 silly fetch manifest turbo-linux-64@1.2.3
48 silly fetch manifest turbo-linux-arm@1.2.3
49 silly fetch manifest turbo-linux-arm64@1.2.3
50 silly fetch manifest turbo-linux-mips64le@1.2.3
51 silly fetch manifest turbo-linux-ppc64le@1.2.3
52 silly fetch manifest turbo-windows-32@1.2.3
53 silly fetch manifest turbo-windows-64@1.2.3
54 http fetch GET 200 https://registry.npmjs.org/turbo-windows-64 188ms (cache revalidated)
55 http fetch GET 200 https://registry.npmjs.org/turbo-windows-32 237ms (cache revalidated)
56 http fetch GET 200 https://registry.npmjs.org/turbo-darwin-64 373ms (cache revalidated)
57 http fetch GET 200 https://registry.npmjs.org/turbo-linux-32 382ms (cache revalidated)
58 http fetch GET 200 https://registry.npmjs.org/turbo-freebsd-arm64 397ms (cache revalidated)
59 http fetch GET 200 https://registry.npmjs.org/turbo-linux-mips64le 403ms (cache revalidated)
60 http fetch GET 200 https://registry.npmjs.org/turbo-linux-arm64 423ms (cache revalidated)
61 http fetch GET 200 https://registry.npmjs.org/turbo-linux-ppc64le 426ms (cache revalidated)
62 http fetch GET 200 https://registry.npmjs.org/turbo-linux-64 428ms (cache revalidated)
63 http fetch GET 200 https://registry.npmjs.org/turbo-freebsd-64 434ms (cache revalidated)
64 http fetch GET 200 https://registry.npmjs.org/turbo-darwin-arm64 439ms (cache revalidated)
65 http fetch GET 200 https://registry.npmjs.org/turbo-linux-arm 479ms (cache revalidated)
66 timing idealTree:#root Completed in 783ms
67 silly fetch manifest react@*
68 http fetch GET 200 https://registry.npmjs.org/react 70ms (cache revalidated)
69 silly fetch manifest react-dom@*
70 http fetch GET 200 https://registry.npmjs.org/react-dom 84ms (cache revalidated)
71 silly fetch manifest react-scripts@*
72 http fetch GET 200 https://registry.npmjs.org/react-scripts 176ms (cache miss)
73 silly fetch manifest typescript@^3.2.1 || ^4
74 http fetch GET 200 https://registry.npmjs.org/typescript 94ms (cache revalidated)
75 silly fetch manifest cra-template-typescript@*
76 http fetch GET 200 https://registry.npmjs.org/cra-template-typescript 299ms (cache miss)
77 silly placeDep ROOT cra-template-typescript@1.2.0 OK for: cardpicker@0.1.0 want: *
78 silly placeDep ROOT react@18.0.0 OK for: cardpicker@0.1.0 want: *
79 timing idealTree Completed in 2250ms
80 timing command:install Completed in 2260ms
81 verbose stack TypeError: Cannot read properties of null (reading 'matches')
81 verbose stack at Link.matches (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1090:41)
81 verbose stack at Link.canDedupe (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/node.js:1044:15)
81 verbose stack at PlaceDep.pruneDedupable (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:465:14)
81 verbose stack at PlaceDep.placeInTree (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:326:14)
81 verbose stack at PlaceDep.place (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:214:10)
81 verbose stack at new PlaceDep (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/place-dep.js:71:10)
81 verbose stack at /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:964:31
81 verbose stack at Array.map (<anonymous>)
81 verbose stack at Arborist.[buildDepStep] (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:964:8)
81 verbose stack at async Arborist.buildIdealTree (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:216:7)
82 verbose cwd /home/jstevens/game-zone/apps/cardpicker
83 verbose Linux 5.10.16.3-microsoft-standard-WSL2
84 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--no-audit" "--save" "--save-exact" "--loglevel" "error" "react" "react-dom" "react-scripts" "cra-template-typescript"
85 verbose node v17.9.0
86 verbose npm v8.5.5
87 error Cannot read properties of null (reading 'matches')
88 verbose exit 1
89 timing npm Completed in 2365ms
90 verbose unfinished npm timer reify 1649956687540
91 verbose unfinished npm timer reify:loadTrees 1649956687541
92 verbose unfinished npm timer idealTree:buildDeps 1649956688246
93 verbose unfinished npm timer idealTree:apps/cardpicker 1649956689030
94 verbose code 1
95 error A complete log of this run can be found in:
95 error /home/jstevens/.npm/_logs/2022-04-14T17_18_07_430Z-debug-0.log
