Yarn Install fails - node.js

I'm trying to get in to reactjs first I install the create-react-app using npm and once I run the create-react-app command it was throwing me the following error
0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'install',
0 verbose cli '-g',
0 verbose cli 'yarn'
0 verbose cli ]
1 info using npm#8.5.5
2 info using node#v16.15.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 4ms
6 timing config:load:builtin Completed in 4ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:C:\Users\Thilina\.npmrc Completed in 0ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:C:\Users\Thilina\AppData\Roaming\npm\etc\npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:credentials Completed in 1ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 14ms
18 timing npm:load:configload Completed in 15ms
19 timing npm:load:setTitle Completed in 0ms
20 timing config:load:flatten Completed in 3ms
21 timing npm:load:display Completed in 5ms
22 verbose logfile C:\Users\Thilina\AppData\Local\npm-cache\_logs\2022-05-30T07_44_49_903Z-debug-0.log
23 timing npm:load:logFile Completed in 7ms
24 timing npm:load:timers Completed in 0ms
25 timing npm:load:configScope Completed in 0ms
26 timing npm:load Completed in 27ms
27 timing arborist:ctor Completed in 0ms
28 silly logfile start cleaning logs, removing 2 files
29 timing idealTree:init Completed in 6ms
30 timing idealTree:userRequests Completed in 2ms
31 silly idealTree buildDeps
32 silly fetch manifest yarn#*
33 http fetch GET 200 https://registry.npmjs.org/yarn 874ms (cache miss)
34 silly placeDep ROOT yarn#1.22.18 OK for: want: *
35 timing idealTree:#root Completed in 887ms
36 timing idealTree:node_modules/yarn Completed in 0ms
37 timing idealTree:buildDeps Completed in 888ms
38 timing idealTree:fixDepFlags Completed in 0ms
39 timing idealTree Completed in 899ms
40 timing reify:loadTrees Completed in 901ms
41 timing reify:diffTrees Completed in 1ms
42 silly reify moves {}
43 timing reify:retireShallow Completed in 0ms
44 timing reify:createSparse Completed in 1ms
45 timing reify:loadBundles Completed in 0ms
46 silly audit bulk request { yarn: [ '1.22.18' ] }
47 silly tarball no local data for yarn#https://registry.npmjs.org/yarn/-/yarn-1.22.18.tgz. Extracting by manifest.
48 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 445ms
49 timing auditReport:getReport Completed in 446ms
50 silly audit report {}
51 timing auditReport:init Completed in 0ms
52 timing reify:audit Completed in 446ms
53 http fetch GET 200 https://registry.npmjs.org/yarn/-/yarn-1.22.18.tgz 3096ms (cache miss)
54 timing reifyNode:node_modules/yarn Completed in 3103ms
55 timing reify:unpack Completed in 3104ms
56 timing reify:unretire Completed in 0ms
57 timing build:queue Completed in 5ms
58 info run yarn#1.22.18 preinstall node_modules/yarn :; (node ./preinstall.js > /dev/null 2>&1 || true)
59 info run yarn#1.22.18 preinstall { code: 1, signal: null }
60 timing reify:rollback:createSparse Completed in 6ms
61 timing reify:rollback:retireShallow Completed in 0ms
62 timing command:install Completed in 8818ms
63 verbose stack Error: command failed
63 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\promise-spawn\index.js:64:27)
63 verbose stack at ChildProcess.emit (node:events:527:28)
63 verbose stack at maybeClose (node:internal/child_process:1092:16)
63 verbose stack at Socket.<anonymous> (node:internal/child_process:451:11)
63 verbose stack at Socket.emit (node:events:527:28)
63 verbose stack at Pipe.<anonymous> (node:net:709:12)
64 verbose pkgid yarn#1.22.18
65 verbose cwd F:\ReactNative\React\ReactWithMosh
66 verbose Windows_NT 10.0.19042
67 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yarn"
68 verbose node v16.15.0
69 verbose npm v8.5.5
70 error code 1
71 error path C:\Users\Thilina\AppData\Roaming\npm\node_modules\yarn
72 error command failed
73 error command bash -c :; (node ./preinstall.js > /dev/null 2>&1 || true)
74 verbose exit 1
75 timing npm Completed in 9221ms
76 verbose unfinished npm timer reify 1653896690302
77 verbose unfinished npm timer reify:build 1653896694324
78 verbose unfinished npm timer build 1653896694324
79 verbose unfinished npm timer build:deps 1653896694324
80 verbose unfinished npm timer build:run:preinstall 1653896694329
81 verbose unfinished npm timer build:run:preinstall:node_modules/yarn 1653896694330
82 verbose code 1
83 error A complete log of this run can be found in:
83 error C:\Users\Thilina\AppData\Local\npm-cache\_logs\2022-05-30T07_44_49_903Z-debug-0.log
So, I searched the internet and found that there's a temporary workaround using installing yarn
so, I tried to install yarn and I ran the following command
npm install -g yarn
and I get the following error
Any help would be highly appreciated
I've tried cleaning cache using -force but still won't work.
0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'install',
0 verbose cli '-g',
0 verbose cli 'yarn'
0 verbose cli ]
1 info using npm#8.5.5
2 info using node#v16.15.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 4ms
6 timing config:load:builtin Completed in 4ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:C:\Users\Thilina\.npmrc Completed in 0ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:C:\Users\Thilina\AppData\Roaming\npm\etc\npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:credentials Completed in 1ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 14ms
18 timing npm:load:configload Completed in 15ms
19 timing npm:load:setTitle Completed in 0ms
20 timing config:load:flatten Completed in 3ms
21 timing npm:load:display Completed in 5ms
22 verbose logfile C:\Users\Thilina\AppData\Local\npm-cache\_logs\2022-05-30T07_44_49_903Z-debug-0.log
23 timing npm:load:logFile Completed in 7ms
24 timing npm:load:timers Completed in 0ms
25 timing npm:load:configScope Completed in 0ms
26 timing npm:load Completed in 27ms
27 timing arborist:ctor Completed in 0ms
28 silly logfile start cleaning logs, removing 2 files
29 timing idealTree:init Completed in 6ms
30 timing idealTree:userRequests Completed in 2ms
31 silly idealTree buildDeps
32 silly fetch manifest yarn#*
33 http fetch GET 200 https://registry.npmjs.org/yarn 874ms (cache miss)
34 silly placeDep ROOT yarn#1.22.18 OK for: want: *
35 timing idealTree:#root Completed in 887ms
36 timing idealTree:node_modules/yarn Completed in 0ms
37 timing idealTree:buildDeps Completed in 888ms
38 timing idealTree:fixDepFlags Completed in 0ms
39 timing idealTree Completed in 899ms
40 timing reify:loadTrees Completed in 901ms
41 timing reify:diffTrees Completed in 1ms
42 silly reify moves {}
43 timing reify:retireShallow Completed in 0ms
44 timing reify:createSparse Completed in 1ms
45 timing reify:loadBundles Completed in 0ms
46 silly audit bulk request { yarn: [ '1.22.18' ] }
47 silly tarball no local data for yarn#https://registry.npmjs.org/yarn/-/yarn-1.22.18.tgz. Extracting by manifest.
48 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 445ms
49 timing auditReport:getReport Completed in 446ms
50 silly audit report {}
51 timing auditReport:init Completed in 0ms
52 timing reify:audit Completed in 446ms
53 http fetch GET 200 https://registry.npmjs.org/yarn/-/yarn-1.22.18.tgz 3096ms (cache miss)
54 timing reifyNode:node_modules/yarn Completed in 3103ms
55 timing reify:unpack Completed in 3104ms
56 timing reify:unretire Completed in 0ms
57 timing build:queue Completed in 5ms
58 info run yarn#1.22.18 preinstall node_modules/yarn :; (node ./preinstall.js > /dev/null 2>&1 || true)
59 info run yarn#1.22.18 preinstall { code: 1, signal: null }
60 timing reify:rollback:createSparse Completed in 6ms
61 timing reify:rollback:retireShallow Completed in 0ms
62 timing command:install Completed in 8818ms
63 verbose stack Error: command failed
63 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\promise-spawn\index.js:64:27)
63 verbose stack at ChildProcess.emit (node:events:527:28)
63 verbose stack at maybeClose (node:internal/child_process:1092:16)
63 verbose stack at Socket.<anonymous> (node:internal/child_process:451:11)
63 verbose stack at Socket.emit (node:events:527:28)
63 verbose stack at Pipe.<anonymous> (node:net:709:12)
64 verbose pkgid yarn#1.22.18
65 verbose cwd F:\ReactNative\React\ReactWithMosh
66 verbose Windows_NT 10.0.19042
67 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yarn"
68 verbose node v16.15.0
69 verbose npm v8.5.5
70 error code 1
71 error path C:\Users\Thilina\AppData\Roaming\npm\node_modules\yarn
72 error command failed
73 error command bash -c :; (node ./preinstall.js > /dev/null 2>&1 || true)
74 verbose exit 1
75 timing npm Completed in 9221ms
76 verbose unfinished npm timer reify 1653896690302
77 verbose unfinished npm timer reify:build 1653896694324
78 verbose unfinished npm timer build 1653896694324
79 verbose unfinished npm timer build:deps 1653896694324
80 verbose unfinished npm timer build:run:preinstall 1653896694329
81 verbose unfinished npm timer build:run:preinstall:node_modules/yarn 1653896694330
82 verbose code 1
83 error A complete log of this run can be found in:
83 error C:\Users\Thilina\AppData\Local\npm-cache\_logs\2022-05-30T07_44_49_903Z-debug-0.log

Ok So I managed to fix the react Install issue with the following command
npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
error occurs because of a post install script trying to run and it fails to find bash

Related

Node-Red install fails

I am trying to install node-red on my new system and for some reason it is failing with the following error:
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm#8.19.3
2 info using node#v18.13.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 6ms
6 timing config:load:builtin Completed in 6ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:C:\Users\Alex\.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:C:\Users\Alex\AppData\Roaming\npm\etc\npmrc Completed in 1ms
13 timing config:load:global Completed in 1ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:credentials Completed in 0ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 12ms
18 timing npm:load:configload Completed in 12ms
19 timing npm:load:mkdirpcache Completed in 1ms
20 timing npm:load:mkdirplogs Completed in 0ms
21 verbose title npm install node-red
22 verbose argv "install" "--global" "--unsafe-perm" "node-red"
23 timing npm:load:setTitle Completed in 1ms
24 timing config:load:flatten Completed in 2ms
25 timing npm:load:display Completed in 3ms
26 verbose logfile logs-max:10 dir:C:\Users\Alex\AppData\Local\npm-cache\_logs
27 verbose logfile C:\Users\Alex\AppData\Local\npm-cache\_logs\2023-01-22T11_59_29_047Z-debug-0.log
28 timing npm:load:logFile Completed in 13ms
29 timing npm:load:timers Completed in 0ms
30 timing npm:load:configScope Completed in 0ms
31 timing npm:load Completed in 30ms
32 timing arborist:ctor Completed in 0ms
33 silly logfile start cleaning logs, removing 2 files
34 silly logfile done cleaning log files
35 timing idealTree:init Completed in 4ms
36 timing idealTree:userRequests Completed in 1ms
37 silly idealTree buildDeps
38 silly fetch manifest node-red#*
39 silly placeDep ROOT node-red# OK for: want: *
40 timing idealTree:#root Completed in 133177ms
41 timing idealTree:node_modules/node-red Completed in 1ms
42 timing idealTree:buildDeps Completed in 133179ms
43 timing idealTree:fixDepFlags Completed in 1ms
44 timing idealTree Completed in 133185ms
45 timing command:install Completed in 133194ms
46 verbose type system
47 verbose stack FetchError: request to https://registry.npmjs.org/node-red failed, reason: connect ETIMEDOUT 2606:4700::6810:1923:443
47 verbose stack at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
47 verbose stack at ClientRequest.emit (node:events:513:28)
47 verbose stack at TLSSocket.socketErrorListener (node:_http_client:496:9)
47 verbose stack at TLSSocket.emit (node:events:525:35)
47 verbose stack at emitErrorNT (node:internal/streams/destroy:151:8)
47 verbose stack at emitErrorCloseNT (node:internal/streams/destroy:116:3)
47 verbose stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
48 verbose cwd C:\Users\Alex
49 verbose Windows_NT 10.0.22621
50 verbose node v18.13.0
51 verbose npm v8.19.3
52 error code ETIMEDOUT
53 error syscall connect
54 error errno ETIMEDOUT
55 error network request to https://registry.npmjs.org/node-red failed, reason: connect ETIMEDOUT 2606:4700::6810:1923:443
56 error network This is a problem related to network connectivity.
56 error network In most cases you are behind a proxy or have bad network settings.
56 error network
56 error network If you are behind a proxy, please make sure that the
56 error network 'proxy' config is set properly. See: 'npm help config'
57 verbose exit 1
58 timing npm Completed in 133301ms
59 verbose unfinished npm timer reify 1674388769144
60 verbose unfinished npm timer reify:loadTrees 1674388769150
61 verbose code 1
62 error A complete log of this run can be found in:
62 error C:\Users\Alex\AppData\Local\npm-cache\_logs\2023-01-22T11_59_29_047Z-debug-0.log
I already deleted any proxies
npm config delete proxy
npm config delete http-proxy
npm config delete https-proxy
Can anybody think of anything else that might be wrong?
I am running Windows 11 and used the docs here https://nodered.org/docs/getting-started/windows
Thank you everyone :)
Alex

Can't install from NPM anymore - Suddenly getting weird FETCH_ERROR - invalid json response body at

I can't install anything with npm anymore. The weird part is it started happening on both my computers at the same time, both get the same error.
I get the following error and it does not matter what npm package i try to install. It's the same for all.
npm ERR! code FETCH_ERROR
npm ERR! errno FETCH_ERROR
npm ERR! invalid json response body at https://registry.npmjs.org/#auth0%2fangular-jwt reason: Invalid response body while trying to fetch https://registry.npmjs.org/#auth0%2fangular-jwt: EBUSY: resource busy or locked, rename 'C:\Users\nicki\AppData\Local\npm-cache\_cacache\tmp\c1a8147d' -> 'C:\Users\nicki\AppData\Local\npm-cache\_cacache\content-v2\sha512\fd\a4\adcec67b71410555dd3333c58bdcf047b492ef8c074a1b3c22ccc17430068e7f94b3c201a45387cb72c0d0708c21d1600e92240f59464cb2d945ee2b38ed'
I've tried to reinstall, clear the cache. I followed this answer: https://www.reddit.com/r/npm/comments/v9m08x/npm_err_code_ebusy/
Nothing works. Anybody got an idea what could be causing this?
Full error from log:
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm#8.19.2
2 info using node#v16.18.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:C:\Users\nicki\source\repos\PowerConsumptionOverview\PowerConsumptionOverview\ClientApp\.npmrc Completed in 0ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:C:\Users\nicki\.npmrc Completed in 0ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\nicki\AppData\Roaming\npm\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 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 8ms
19 timing npm:load:configload Completed in 8ms
20 timing npm:load:mkdirpcache Completed in 1ms
21 timing npm:load:mkdirplogs Completed in 0ms
22 verbose title npm i #auth0/angular-jwt
23 verbose argv "i" "#auth0/angular-jwt"
24 timing npm:load:setTitle Completed in 1ms
25 timing config:load:flatten Completed in 1ms
26 timing npm:load:display Completed in 2ms
27 verbose logfile logs-max:10 dir:C:\Users\nicki\AppData\Local\npm-cache\_logs
28 verbose logfile C:\Users\nicki\AppData\Local\npm-cache\_logs\2022-10-16T16_21_13_880Z-debug-0.log
29 timing npm:load:logFile Completed in 4ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 16ms
33 timing arborist:ctor Completed in 0ms
34 silly logfile start cleaning logs, removing 2 files
35 silly logfile done cleaning log files
36 timing idealTree:init Completed in 337ms
37 timing idealTree:userRequests Completed in 3ms
38 silly idealTree buildDeps
39 silly fetch manifest #auth0/angular-jwt#*
40 timing arborist:ctor Completed in 0ms
41 http fetch GET 200 https://registry.npmjs.org/#auth0%2fangular-jwt 2085ms (cache miss)
42 silly placeDep ROOT #auth0/angular-jwt# OK for: powerconsumptionoverview#0.0.0 want: *
43 timing idealTree:#root Completed in 2090ms
44 timing idealTree:node_modules/#auth0/angular-jwt Completed in 0ms
45 timing idealTree:buildDeps Completed in 2090ms
46 timing idealTree:fixDepFlags Completed in 4ms
47 timing idealTree Completed in 2436ms
48 timing command:i Completed in 2444ms
49 verbose type invalid-json
50 verbose stack FetchError: invalid json response body at https://registry.npmjs.org/#auth0%2fangular-jwt reason: Invalid response body while trying to fetch https://registry.npmjs.org/#auth0%2fangular-jwt: EBUSY: resource busy or locked, rename 'C:\Users\nicki\AppData\Local\npm-cache\_cacache\tmp\c1a8147d' -> 'C:\Users\nicki\AppData\Local\npm-cache\_cacache\content-v2\sha512\fd\a4\adcec67b71410555dd3333c58bdcf047b492ef8c074a1b3c22ccc17430068e7f94b3c201a45387cb72c0d0708c21d1600e92240f59464cb2d945ee2b38ed'
50 verbose stack at Response.json (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-fetch\lib\body.js:79:13)
50 verbose stack at async RegistryFetcher.packument (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\registry.js:99:25)
50 verbose stack at async RegistryFetcher.manifest (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\registry.js:124:23)
50 verbose stack at async Arborist.[nodeFromEdge] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:1061:19)
50 verbose stack at async Arborist.[buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:930:11)
50 verbose stack at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:211:7)
50 verbose stack at async Promise.all (index 1)
50 verbose stack at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\reify.js:153:5)
50 verbose stack at async Install.exec (C:\Program Files\nodejs\node_modules\npm\lib\commands\install.js:145:5)
50 verbose stack at async module.exports (C:\Program Files\nodejs\node_modules\npm\lib\cli.js:78:5)
51 verbose cwd C:\Users\nicki\source\repos\PowerConsumptionOverview\PowerConsumptionOverview\ClientApp
52 verbose Windows_NT 10.0.22000
53 verbose node v16.18.0
54 verbose npm v8.19.2
55 error code FETCH_ERROR
56 error errno FETCH_ERROR
57 error invalid json response body at https://registry.npmjs.org/#auth0%2fangular-jwt reason: Invalid response body while trying to fetch https://registry.npmjs.org/#auth0%2fangular-jwt: EBUSY: resource busy or locked, rename 'C:\Users\nicki\AppData\Local\npm-cache\_cacache\tmp\c1a8147d' -> 'C:\Users\nicki\AppData\Local\npm-cache\_cacache\content-v2\sha512\fd\a4\adcec67b71410555dd3333c58bdcf047b492ef8c074a1b3c22ccc17430068e7f94b3c201a45387cb72c0d0708c21d1600e92240f59464cb2d945ee2b38ed'
58 verbose exit 1
59 timing npm Completed in 2592ms
60 verbose unfinished npm timer reify 1665937274023
61 verbose unfinished npm timer reify:loadTrees 1665937274030
62 verbose code 1
63 error A complete log of this run can be found in:
63 error C:\Users\nicki\AppData\Local\npm-cache\_logs\2022-10-16T16_21_13_880Z-debug-0.log
Well for anybody else that might stumble upon this. It was my antivirus. Even though i thought i killed it, there we still processes running in the background, which apparently locked the files that npm was creating in the temp folder

When i try to npm install or npm install <any-package>, i see "Cannot read properties of null (reading 'edgesOut')" and İ have package.json

When I try to npm install or npm install, I see "Cannot read properties of null (reading 'edgesOut')" and I have package.json I add screenshots, please help me, thanks a lot.
And that's my error log.
`0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'install',
0 verbose cli 'react-scripts'
0 verbose cli ]
1 info using npm#8.1.2
2 info using node#v16.13.1
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:C:\Users\muhammed.eviz\Desktop\HAKİM\hakim-ui\.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\muhammed.eviz\.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\muhammed.eviz\AppData\Roaming\npm\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 0ms
18 timing config:load Completed in 7ms
19 timing npm:load:configload Completed in 7ms
20 timing npm:load:setTitle Completed in 1ms
21 timing npm:load:setupLog Completed in 0ms
22 timing config:load:flatten Completed in 2ms
23 timing npm:load:cleanupLog Completed in 2ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 1ms
26 timing npm:load Completed in 13ms
27 timing arborist:ctor Completed in 0ms
28 timing arborist:ctor Completed in 0ms
29 timing idealTree:init Completed in 10ms
30 timing idealTree:userRequests Completed in 2ms
31 silly idealTree buildDeps
32 silly fetch manifest #reduxjs/toolkit#^1.6.2
33 http fetch GET 200 https://registry.npmjs.org/#reduxjs%2ftoolkit 444ms (cache revalidated)
34 timing idealTree Completed in 464ms
35 timing command:install Completed in 478ms
36 verbose stack TypeError: Cannot read properties of null (reading 'edgesOut')
36 verbose stack at Arborist.[loadPeerSet] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:1282:38)
36 verbose stack at Arborist.[nodeFromEdge] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:1103:30)
36 verbose stack at async Arborist.[buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:930:11)
36 verbose stack at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:216:7)
36 verbose stack at async Promise.all (index 1)
36 verbose stack at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\reify.js:149:5)
36 verbose stack at async Install.install (C:\Program Files\nodejs\node_modules\npm\lib\install.js:170:5)
37 verbose cwd C:\Users\muhammed.eviz\Desktop\HAKİM\hakim-ui
38 verbose Windows_NT 10.0.19042
39 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "react-scripts"
40 verbose node v16.13.1
41 verbose npm v8.1.2
42 error Cannot read properties of null (reading 'edgesOut')
43 verbose exit 1`
error screenshot1 - when npm install
error screenshot2 - when npm install
my folder structure
If you try to install some packages to a project path which has non-Unicode characters like the following in the path's name
ÇŞİĞÜæÂÊ...
you will get errors.
The below path will work if you try to install packages here.
C:\Users\andrew\project
But this path will not work because it has Unicode in its name.
C:\Users\ândrew\project
EDIT: The best way of solve this problem is using memory card. (Like C:, D:, F:...)

NPM no matching version found for type#module

When I try the nodemailer module, the following log error pops up:
0 verbose cli [
0 verbose cli '/usr/local/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'install',
0 verbose cli 'nodemailer'
0 verbose cli ]
1 info using npm#7.12.1
2 info using node#v15.7.0
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms
6 timing config:load:builtin Completed in 0ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/home/ubuntu/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:validate Completed in 1ms
15 timing config:load:credentials Completed in 1ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 8ms
18 timing npm:load:configload Completed in 9ms
19 timing npm:load:setTitle Completed in 0ms
20 timing npm:load:setupLog Completed in 2ms
21 timing npm:load:cleanupLog Completed in 3ms
22 timing npm:load:configScope Completed in 0ms
23 timing npm:load:projectScope Completed in 1ms
24 timing npm:load Completed in 16ms
25 timing config:load:flatten Completed in 4ms
26 timing arborist:ctor Completed in 1ms
27 timing idealTree:init Completed in 177ms
28 timing idealTree:userRequests Completed in 4ms
29 silly idealTree buildDeps
30 silly fetch manifest nodemailer#^4.7.0
31 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules
32 http fetch GET 304 https://registry.npmjs.org/nodemailer 220ms (from cache)
33 silly fetch manifest type#module
34 http fetch GET 304 https://registry.npmjs.org/type 42ms (from cache)
35 silly placeDep ROOT nodemailer#4.7.0 OK for: biogoapp#1.0.0 want: ^4.7.0
36 silly placeDep ROOT type# OK for: biogoapp#1.0.0 want: module
37 timing idealTree:#root Completed in 284ms
38 timing idealTree:node_modules/nodemailer Completed in 0ms
39 timing idealTree:node_modules/type Completed in 0ms
40 timing idealTree:buildDeps Completed in 285ms
41 timing idealTree:fixDepFlags Completed in 4ms
42 timing idealTree Completed in 471ms
43 timing command:install Completed in 502ms
44 verbose type tag
45 verbose stack type: No matching version found for type#module.
45 verbose stack at module.exports (/usr/local/lib/node_modules/npm/node_modules/npm-pick-manifest/index.js:209:23)
45 verbose stack at /usr/local/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:26
45 verbose stack at async Arborist.[nodeFromEdge] (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:947:19)
45 verbose stack at async Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:893:11)
45 verbose stack at async Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:218:7)
45 verbose stack at async Promise.all (index 1)
45 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/reify.js:135:5)
45 verbose stack at async Install.install (/usr/local/lib/node_modules/npm/lib/install.js:137:5)
46 verbose cwd /home/ubuntu
47 verbose Linux 5.8.0-29-generic
48 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "nodemailer"
49 verbose node v15.7.0
50 verbose npm v7.12.1
51 error code ETARGET
52 error notarget No matching version found for type#module.
53 error notarget In most cases you or one of your dependencies are requesting
53 error notarget a package version that doesn't exist.
54 verbose exit 1
I tried to remove package_lock and node_modules but any installation via npm ends with an error: notarget No matching version found for type # module. I'm just learning node any tips will be of great help. Attempts at various solutions found on google to similar errors did not produce results.
I solved by doing npm install -g instead - not sure what the long-term consequences might be but it works for now.

Node Error "unable to resolve dependency tree" while installing tailwindcss --auth

I tried to install Tailwind UI Auth with php artisan ui tailwindcss --auth command. Both CSS Scaffolding and CSS auth Scaffolding were installed successfully and I ran the command npm install && npm run dev to compile the fresh scaffolding. NPM installation happend but in the dev process of the command, the app was not properly compiled. The error log as follows;
> 0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'install'
0 verbose cli ]
1 info using npm#7.11.2
2 info using node#v16.1.0
3 timing npm:load:whichnode Completed in 2ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 4ms
6 timing config:load:builtin Completed in 4ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:E:\Google Drive\laravel_training\secondproject\.npmrc Completed in 0ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:C:\Users\Charles-MS\.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\Charles-MS\AppData\Roaming\npm\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 2ms
18 timing config:load Completed in 14ms
19 timing npm:load:configload Completed in 14ms
20 timing npm:load:setTitle Completed in 0ms
21 timing npm:load:setupLog Completed in 1ms
22 timing npm:load:cleanupLog Completed in 3ms
23 timing npm:load:configScope Completed in 0ms
24 timing npm:load:projectScope Completed in 1ms
25 timing npm:load Completed in 22ms
26 timing config:load:flatten Completed in 4ms
27 timing arborist:ctor Completed in 4ms
28 timing idealTree:init Completed in 1291ms
29 timing idealTree:userRequests Completed in 0ms
30 silly idealTree buildDeps
31 silly fetch manifest #tailwindcss/ui#^0.3
32 http fetch GET 304 https://registry.npmjs.org/#tailwindcss%2fui 3735ms (from cache)
33 silly fetch manifest tailwindcss#^2.1.2
34 http fetch GET 200 https://registry.npmjs.org/tailwindcss 708ms
35 silly fetch manifest tailwindcss#^1.3.3
36 silly fetch manifest autoprefixer#^9.6
37 http fetch GET 304 https://registry.npmjs.org/autoprefixer 256ms (from cache)
38 silly fetch manifest autoprefixer#^10.0.2
39 timing idealTree Completed in 6018ms
40 timing command:install Completed in 6032ms
41 verbose stack Error: unable to resolve dependency tree
41 verbose stack at Arborist.[failPeerConflict] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:1221:25)
41 verbose stack at Arborist.[loadPeerSet] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:1188:34)
41 verbose stack at async Arborist.[loadPeerSet] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:1175:23)
41 verbose stack at async Arborist.[buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:892:11)
41 verbose stack at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\build-ideal-tree.js:218:7)
41 verbose stack at async Promise.all (index 1)
41 verbose stack at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\#npmcli\arborist\lib\arborist\reify.js:135:5)
41 verbose stack at async Install.install (C:\Program Files\nodejs\node_modules\npm\lib\install.js:137:5)
42 verbose cwd E:\Google Drive\laravel_training\secondproject
43 verbose Windows_NT 10.0.19042
44 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
45 verbose node v16.1.0
46 verbose npm v7.11.2
47 error code ERESOLVE
48 error ERESOLVE unable to resolve dependency tree
49 error
50 error While resolving: [1mundefined[22m#[1mundefined[22m
50 error Found: [1mautoprefixer[22m#[1m9.8.6[22m[2m[22m
50 error [2mnode_modules/autoprefixer[22m
50 error [33mdev[39m [1mautoprefixer[22m#"[1m^9.6[22m" from the root project
50 error
50 error Could not resolve dependency:
50 error [35mpeer[39m [1mautoprefixer[22m#"[1m^10.0.2[22m" from [1mtailwindcss[22m#[1m2.1.2[22m[2m[22m
50 error [2mnode_modules/tailwindcss[22m
50 error [1mtailwindcss[22m#"[1m^2.1.2[22m" from the root project
50 error
50 error Fix the upstream dependency conflict, or retry
50 error this command with --force, or --legacy-peer-deps
50 error to accept an incorrect (and potentially broken) dependency resolution.
50 error
50 error See C:\Users\Charles-MS\AppData\Local\npm-cache\eresolve-report.txt for a full report.
51 verbose exit 1
How to overcome this error? Even I updated node to latest version (v16.1.0) but coudn't fix the error...
The following solution worked for me;
Run the command npm audit fix --force which updates laravel-mix to 6.0.19, a SemVer major change. Then run npm run dev which will successfully compile the webpack. This error occurs due to an outdated laravel-mix package.

Resources