Trying to install express or any other package with npm brings forth this error
"npm ERR! Cannot read property 'insert' of undefined"
Ubuntu 22.04 LTS
npm#8.5.1
node#v12.22
Sections of debug log
0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'express' ]
1 info using npm#8.5.1
2 info using node#v12.22.9
23 verbose logfile /home/kiama/.npm/_logs/2022-04-25T18_29_12_505Z-debug-0.log
24 timing npm:load:logFile Completed in 12ms
25 timing npm:load:timers Completed in 0ms
26 timing npm:load:configScope Completed in 0ms
27 timing npm:load Completed in 73ms
28 timing arborist:ctor Completed in 2ms
29 silly logfile start cleaning logs, removing 1 files
34 silly fetch manifest express#*
35 silly placeDep ROOT express# OK for: server#1.0.0 want: *
36 timing idealTree:#root Completed in 458ms
37 timing idealTree:node_modules/express Completed in 1ms
38 timing idealTree:buildDeps Completed in 462ms
39 timing idealTree:fixDepFlags Completed in 0ms
40 timing idealTree Completed in 513ms
41 timing command:install Completed in 579ms
42 verbose stack TypeError: Cannot read property 'insert' of undefined
42 verbose stack at CacheEntry.store (/usr/share/nodejs/npm/node_modules/make-fetch-happen/lib/cache/entry.js:325:27)
42 verbose stack at cacheFetch (/usr/share/nodejs/npm/node_modules/make-fetch-happen/lib/cache/index.js:18:18)
44 verbose Linux 5.15.0-25-generic
45 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "express"
46 verbose node v12.22.9
47 verbose npm v8.5.1
48 error Cannot read property 'insert' of undefined
Related
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 anyone help me out with this issue? I've tried to install npm passport package (as well as another packages for trial) unsuccessfully and I've got the following message at terminal:
z00441xk#md3n4gkc MINGW64 \~/Documentos/Samuel/Documento Pessoais/Node.js/Secrets (master)
$ npm i passport
npm ERR! code UNKNOWN
npm ERR! syscall rename
npm ERR! path C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk\\credential-pro
npm ERR! dest C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk.credential-pr
npm ERR! errno -4094
npm ERR! UNKNOWN: unknown error, rename 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_moduocumentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk.credential-provider-sso-Hgt41GOO'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\\Users\\z00441xk\\AppData\\Local\\npm-cache_logs\\2022-12-08T09_19_34_435Z-debug-0.log
And the log has the following content:
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#v18.12.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\\Program Files\\nodejs\\node_modules\\npm\\npmrc Completed in 3ms
6 timing config:load:builtin Completed in 3ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets.npmrc Completed in 1ms
10 timing config:load:project Completed in 7ms
11 timing config:load:file:C:\\Users\\z00441xk.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\\Users\\z00441xk\\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 17ms
19 timing npm:load:configload Completed in 17ms
20 timing npm:load:mkdirpcache Completed in 1ms
21 timing npm:load:mkdirplogs Completed in 0ms
22 verbose title npm i passport
23 verbose argv "i" "passport"
24 timing npm:load:setTitle Completed in 2ms
25 timing config:load:flatten Completed in 2ms
26 timing npm:load:display Completed in 3ms
27 verbose logfile logs-max:10 dir:C:\\Users\\z00441xk\\AppData\\Local\\npm-cache_logs
28 verbose logfile C:\\Users\\z00441xk\\AppData\\Local\\npm-cache_logs\\2022-12-08T09_01_48_742Z-debug-0.log
29 timing npm:load:logFile Completed in 12ms
30 timing npm:load:timers Completed in 1ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 36ms
33 timing arborist:ctor Completed in 1ms
34 silly logfile start cleaning logs, removing 2 files
35 silly logfile done cleaning log files
36 timing idealTree:init Completed in 135ms
37 timing idealTree:userRequests Completed in 2ms
38 silly idealTree buildDeps
39 silly fetch manifest passport#\*
40 verbose shrinkwrap failed to load node_modules/.package-lock.json \[Error: UNKNOWN: unknown error, readlink 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk\\credential-provider-sso'\] {
40 verbose shrinkwrap errno: -4094,
40 verbose shrinkwrap code: 'UNKNOWN',
40 verbose shrinkwrap syscall: 'readlink',
40 verbose shrinkwrap path: 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules\\#aws-sdk\\credential-provider-sso'
40 verbose shrinkwrap }
41 http fetch GET 200 https://registry.npmjs.org/passport 560ms (cache revalidated)
42 silly placeDep ROOT passport#0.6.0 OK for: secrets---starting-code#1.0.0 want: \*
43 silly fetch manifest passport-strategy#1.x.x
44 silly fetch manifest pause#0.0.1
45 http fetch GET 200 https://registry.npmjs.org/pause 151ms (cache revalidated)
46 http fetch GET 200 https://registry.npmjs.org/passport-strategy 354ms (cache revalidated)
47 timing idealTree:#root Completed in 922ms
48 silly placeDep ROOT passport-strategy#1.0.0 OK for: passport#0.6.0 want: 1.x.x
49 silly placeDep ROOT pause#0.0.1 OK for: passport#0.6.0 want: 0.0.1
50 timing idealTree:node_modules/passport Completed in 2ms
51 timing idealTree:node_modules/passport-strategy Completed in 0ms
52 timing idealTree:node_modules/pause Completed in 0ms
53 timing idealTree:buildDeps Completed in 924ms
54 timing idealTree:fixDepFlags Completed in 2ms
55 timing idealTree Completed in 1067ms
56 timing reify:loadTrees Completed in 1067ms
57 timing reify:diffTrees Completed in 14ms
58 silly reify mark retired \[
58 silly reify 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules\\#aws-sdk\\credential-provider-sso'
58 silly reify \]
59 silly reify moves {
59 silly reify 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules\\#aws-sdk\\credential-provider-sso': 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules\\#aws-sdk\\.credential-provider-sso-Hgt41GOO'
59 silly reify }
60 timing reify:rollback:retireShallow Completed in 3ms
61 timing command:i Completed in 1098ms
62 verbose stack Error: UNKNOWN: unknown error, rename 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk\\credential-provider-sso' -\> 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk.credential-provider-sso-Hgt41GOO'
63 verbose cwd C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets
64 verbose Windows_NT 10.0.19042
65 verbose node v18.12.0
66 verbose npm v8.19.2
67 error code UNKNOWN
68 error syscall rename
69 error path C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk\\credential-provider-sso
70 error dest C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk.credential-provider-sso-Hgt41GOO
71 error errno -4094
72 error UNKNOWN: unknown error, rename 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk\\credential-provider-sso' -\> 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules#aws-sdk.credential-provider-sso-Hgt41GOO'
73 verbose exit -4094
74 timing npm Completed in 1281ms
75 verbose unfinished npm timer reify 1670490108915
76 verbose unfinished npm timer reify:retireShallow 1670490110006
77 verbose code -4094
78 error A complete log of this run can be found in:
78 error C:\\Users\\z00441xk\\AppData\\Local\\npm-cache_logs\\2022-12-08T09_01_48_742Z-debug-0.log
After some research I've ended up to try and remove node_modules and add it again. However I cannot remove it and I get the following message:
*z00441xk#md3n4gkc MINGW64 ~/Documentos/Samuel/Documento Pessoais/Node.js/Secrets (master)
$ rm -rf node_modules
rm: cannot remove 'node_modules/#aws-sdk/credential-provider-sso': Input/output error*
Finally I've been installing rimraf (npm install rimraf -g) and using the command "$ rimraf node_modules" as well as "$ npx rimraf node_modules", "$ npm cache clean --force", but unfortunately I've got the following message from both attempts from terminal:
z00441xk#md3n4gkc MINGW64 ~/Documentos/Samuel/Documento Pessoais/Node.js/Secrets (master)
$ npx rimraf node_modules
C:\Users\z00441xk\AppData\Roaming\npm\node_modules\rimraf\bin.js:46
throw er
^
[Error: UNKNOWN: unknown error, unlink 'C:\Users\z00441xk\Documentos\Samuel\Documento Pessoais\Node.js\Secrets\node_modules\#aws-sdk\credential-provider-sso'] {
errno: -4094,
code: 'UNKNOWN',
syscall: 'unlink',
path: 'C:\\Users\\z00441xk\\Documentos\\Samuel\\Documento Pessoais\\Node.js\\Secrets\\node_modules\\#aws-sdk\\credential-provider-sso'
}
Node.js v18.12.0
Has anyone experienced this before or know what is causing this?
Thank you very much for your cooperation!
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
When i try to init a eslint config file for my node project with npm init #eslint/config. below is the error i am getting, I tried to downgrade node versio, upgrade npm to latest version, clear node cache nothing worked out.
Tried to google and could'nt find anything to this particular issue.
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Users\\sakth\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'init',
0 verbose cli '#eslint/config'
0 verbose cli ]
1 info using npm#8.5.3
2 info using node#v16.14.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\Users\sakth\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 3ms
6 timing config:load:builtin Completed in 3ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:D:\Projects\.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\sakth\.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\sakth\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 1ms
18 timing config:load Completed in 11ms
19 timing npm:load:configload Completed in 11ms
20 timing npm:load:setTitle Completed in 1ms
21 timing config:load:flatten Completed in 3ms
22 timing npm:load:display Completed in 5ms
23 verbose logfile C:\Users\sakth\AppData\Local\npm-cache\_logs\2022-03-08T16_30_49_917Z-debug-0.log
24 timing npm:load:logFile Completed in 36ms
25 timing npm:load:timers Completed in 0ms
26 timing npm:load:configScope Completed in 0ms
27 timing npm:load Completed in 53ms
28 silly logfile start cleaning logs, removing 4 files
29 http fetch GET 200 https://registry.npmjs.org/#eslint%2fcreate-config 2465ms (cache revalidated)
30 timing arborist:ctor Completed in 1ms
31 timing arborist:ctor Completed in 0ms
32 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules/acorn-jsx
33 timing command:init Completed in 2618ms
34 verbose stack Error: command failed
34 verbose stack at ChildProcess.<anonymous> (C:\Users\sakth\AppData\Roaming\npm\node_modules\npm\node_modules\#npmcli\promise-spawn\index.js:64:27)
34 verbose stack at ChildProcess.emit (node:events:520:28)
34 verbose stack at maybeClose (node:internal/child_process:1092:16)
34 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
35 verbose cwd D:\Projects
36 verbose Windows_NT 10.0.19044
37 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\sakth\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "init" "#eslint/config"
38 verbose node v16.14.0
39 verbose npm v8.5.3
40 error code 1
41 error path D:\Projects
42 error command failed
43 error command C:\Windows\system32\cmd.exe /d /s /c create-config
44 verbose exit 1
45 timing npm Completed in 3315ms
46 verbose code 1
47 error A complete log of this run can be found in:
47 error C:\Users\sakth\AppData\Local\npm-cache\_logs\2022-03-08T16_30_49_917Z-debug-0.log
And for npx create-react-app .
'create-react-app' is not recognized as an internal or external command,
operable program or batch file.
are you using the newer npx command for create-react-app? from the docs :
npx create-react-app my-app cd my-app npm start
If you've previously installed create-react-app globally via npm
install -g create-react-app, we recommend you uninstall the package
using npm uninstall -g create-react-app or yarn global remove
create-react-app to ensure that npx always uses the latest version.
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.