nodeJS issue : "Cannot read property 'resolve' of undefined"

nicolas.E

Registered
Oct 26, 2019
1
0
1
France
cPanel Access Level
Reseller Owner
Hello,
I try to import a nodejs project using express into my cPanel domain, but i've got issues when I try to run an npm install.

Here are my logs :

Code:
17 silly fetchPackageMetaData error for [email protected]~1.4.4 Cannot read property 'resolve' of undefined
18 silly fetchPackageMetaData error for [email protected]~2.6.9 Cannot read property 'resolve' of undefined
19 silly fetchPackageMetaData error for [email protected]~4.16.1 Cannot read property 'resolve' of undefined
20 silly fetchPackageMetaData error for [email protected]~1.6.3 Cannot read property 'resolve' of undefined
21 silly fetchPackageMetaData error for [email protected]~1.9.1 Cannot read property 'resolve' of undefined
22 silly fetchPackageMetaData error for [email protected]^2.17.1 Cannot read property 'resolve' of undefined
23 silly fetchPackageMetaData error for [email protected] Cannot read property 'resolve' of undefined
24 silly fetchPackageMetaData error for [email protected]~1.4.4 Cannot read property 'resolve' of undefined
25 silly fetchPackageMetaData error for [email protected]~2.6.9 Cannot read property 'resolve' of undefined
26 silly fetchPackageMetaData error for [email protected]~4.16.1 Cannot read property 'resolve' of undefined
27 silly fetchPackageMetaData error for [email protected]~1.6.3 Cannot read property 'resolve' of undefined
28 silly fetchPackageMetaData error for [email protected]~1.9.1 Cannot read property 'resolve' of undefined
29 silly fetchPackageMetaData error for [email protected]^2.17.1 Cannot read property 'resolve' of undefined
30 silly fetchPackageMetaData error for [email protected] Cannot read property 'resolve' of undefined
31 timing stage:rollbackFailedOptional Completed in 1ms
32 timing stage:runTopLevelLifecycles Completed in 726ms
33 silly saveTree [email protected]
34 verbose stack TypeError: Cannot read property 'resolve' of undefined
34 verbose stack     at regFetch (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/npm-registry-fetch/index.js:76:23)
34 verbose stack     at fetchPackument (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/lib/fetchers/registry/packument.js:42:10)
34 verbose stack     at packument (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/lib/fetchers/registry/packument.js:20:10)
34 verbose stack     at getManifest (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/lib/fetchers/registry/manifest.js:22:10)
34 verbose stack     at manifest (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/lib/fetchers/registry/manifest.js:13:10)
34 verbose stack     at Object.manifest (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/lib/fetchers/registry/index.js:17:12)
34 verbose stack     at Object.Fetcher#manifest [as manifest] (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/genfun/lib/genfun.js:15:38)
34 verbose stack     at manifest (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/lib/fetch.js:23:18)
34 verbose stack     at pinflight (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/manifest.js:24:12)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/promise-inflight/inflight.js:29:24
34 verbose stack     at _inflight (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/promise-inflight/inflight.js:28:25)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/promise-inflight/inflight.js:22:14
34 verbose stack From previous event:
34 verbose stack     at inflight (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/promise-inflight/inflight.js:14:40)
34 verbose stack     at Object.manifest (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/manifest.js:22:10)
34 verbose stack     at fetchPackageMetadata (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/fetch-package-metadata.js:58:10)
34 verbose stack     at limited (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/call-limit/call-limit.js:29:10)
34 verbose stack     at addDependency (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install/deps.js:590:5)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install/deps.js:516:5
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/async-map.js:52:35
34 verbose stack     at Array.forEach (<anonymous>)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/async-map.js:52:11
34 verbose stack     at Array.forEach (<anonymous>)
34 verbose stack     at asyncMap (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/async-map.js:51:8)
34 verbose stack     at loadDeps (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install/deps.js:514:3)
34 verbose stack     at Array.<anonymous> (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/bind-actor.js:15:8)
34 verbose stack     at LOOP (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:15:14)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:18:7
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install/and-finish-tracker.js:8:8
34 verbose stack     at resolveBranchDeps.then (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install/deps.js:478:11)
34 verbose stack From previous event:
34 verbose stack     at prefetchDeps (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install/deps.js:477:41)
34 verbose stack     at Array.<anonymous> (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/bind-actor.js:15:8)
34 verbose stack     at LOOP (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:15:14)
34 verbose stack     at chain (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:20:5)
34 verbose stack     at Installer.loadAllDepsIntoIdealTree (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install.js:477:3)
34 verbose stack     at Array.<anonymous> (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/bind-actor.js:15:8)
34 verbose stack     at LOOP (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:15:14)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:18:7
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install.js:372:5
34 verbose stack     at Array.<anonymous> (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/bind-actor.js:15:8)
34 verbose stack     at LOOP (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:15:14)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:18:7
34 verbose stack     at Installer.finishTracker (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install.js:379:3)
34 verbose stack     at Array.<anonymous> (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/bind-actor.js:15:8)
34 verbose stack     at LOOP (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:15:14)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/slide/lib/chain.js:18:7
34 verbose stack     at readShrinkwrap.andInflate.iferr (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install.js:733:5)
34 verbose stack     at a (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/iferr/iferr.js:3:64)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install/read-shrinkwrap.js:49:14
34 verbose stack From previous event:
34 verbose stack     at readShrinkwrap (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install/read-shrinkwrap.js:34:5)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/lib/install.js:691:7
34 verbose stack     at a (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/iferr/iferr.js:3:64)
34 verbose stack     at thenHandleErrors (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/read-package-tree/rpt.js:247:5)
34 verbose stack     at f (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/once/once.js:25:25)
34 verbose stack     at asyncForEach (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/read-package-tree/rpt.js:11:31)
34 verbose stack     at thenProcessChildren (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/read-package-tree/rpt.js:214:12)
34 verbose stack     at f (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/once/once.js:25:25)
34 verbose stack     at thenSortChildren (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/read-package-tree/rpt.js:179:5)
34 verbose stack     at asyncForEach (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/read-package-tree/rpt.js:11:31)
34 verbose stack     at thenLoadKids (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/read-package-tree/rpt.js:162:5)
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/readdir-scoped-modules/readdir.js:24:14
34 verbose stack     at /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/dezalgo/dezalgo.js:17:12
34 verbose stack     at RawTask.call (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/asap/asap.js:40:19)
34 verbose stack     at flush (/opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/asap/raw.js:50:29)
34 verbose stack     at process._tickCallback (internal/process/next_tick.js:61:11)

I'm using Nodejs 10.16.3

Thanks a lot

PS : I tried to input a simple express project, and i've got the same issue.
 

cPanelLauren

Technical Support Community Manager
Staff member
Nov 14, 2017
13,252
1,234
313
Houston
Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!