[OpenIndiana-discuss] nodejs (npm) problem

Stephan Althaus Stephan.Althaus at Duedinghausen.eu
Mon Feb 7 10:58:03 UTC 2022


On 2/7/22 11:11, Predrag Zecevic via openindiana-discuss wrote:
> Hi all,
>
> does this happens only to me?
> :; pkg list | grep nodejs
> runtime/nodejs-16 16.13.2-2022.0.0.0         i--
>
> :; npm version
> Error: Cannot find module 'make-fetch-happen'
> Require stack:
> - 
> /usr/node/16/lib/node_modules/npm/node_modules/npm-registry-fetch/index.js
> - /usr/node/16/lib/node_modules/npm/node_modules/pacote/lib/remote.js
> - /usr/node/16/lib/node_modules/npm/node_modules/pacote/lib/git.js
> - /usr/node/16/lib/node_modules/npm/node_modules/pacote/lib/fetcher.js
> - /usr/node/16/lib/node_modules/npm/node_modules/pacote/lib/index.js
> - /usr/node/16/lib/node_modules/npm/lib/utils/update-notifier.js
> - /usr/node/16/lib/node_modules/npm/lib/cli.js
> - /usr/node/16/lib/node_modules/npm/bin/npm-cli.js
>     at Function.Module._resolveFilename 
> (node:internal/modules/cjs/loader:933:15)
>     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
>     at Module.require (node:internal/modules/cjs/loader:1005:19)
>     at require (node:internal/modules/cjs/helpers:102:18)
>     at Object.<anonymous> 
> (/usr/node/16/lib/node_modules/npm/node_modules/npm-registry-fetch/index.js:6:15)
>     at Module._compile (node:internal/modules/cjs/loader:1101:14)
>     at Object.Module._extensions..js 
> (node:internal/modules/cjs/loader:1153:10)
>     at Module.load (node:internal/modules/cjs/loader:981:32)
>     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
>     at Module.require (node:internal/modules/cjs/loader:1005:19)
>
> Regards.
>
Hi Predrag!

$ pkg list | grep nodejs
runtime/nodejs-12 (openindiana.org) 12.22.9-2022.0.0.0         i--
$ npm --version
6.14.15

so nodejs 12 is fine.


$ sudo pkg install nodejs-16
Password:
            Packages to install:   1
             Packages to change:   1
            Mediators to change:   1
        Create boot environment:  No
Create backup boot environment: Yes

DOWNLOAD                                PKGS         FILES    XFER 
(MB)   SPEED
Completed                                2/2     2360/2360 36.5/36.5  1.2M/s

PHASE                                          ITEMS
Removing old actions                           16/16
Installing new actions                     2462/2462
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Reading search index                            Done
Updating search index                            2/2
steven at dell6510:~$ npm --version
Error: Cannot find module 'make-fetch-happen'
Require stack:
- /usr/node/16/lib/node_modules/npm/node_modules/npm-registry-fetch/index.js
- /usr/node/16/lib/node_modules/npm/node_modules/pacote/lib/remote.js
- /usr/node/16/lib/node_modules/npm/node_modules/pacote/lib/git.js
- /usr/node/16/lib/node_modules/npm/node_modules/pacote/lib/fetcher.js
- /usr/node/16/lib/node_modules/npm/node_modules/pacote/lib/index.js
- /usr/node/16/lib/node_modules/npm/lib/utils/update-notifier.js
- /usr/node/16/lib/node_modules/npm/lib/cli.js
- /usr/node/16/lib/node_modules/npm/bin/npm-cli.js
     at Function.Module._resolveFilename 
(node:internal/modules/cjs/loader:933:15)
     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
     at Module.require (node:internal/modules/cjs/loader:1005:19)
     at require (node:internal/modules/cjs/helpers:102:18)
     at Object.<anonymous> 
(/usr/node/16/lib/node_modules/npm/node_modules/npm-registry-fetch/index.js:6:15)
     at Module._compile (node:internal/modules/cjs/loader:1101:14)
     at Object.Module._extensions..js 
(node:internal/modules/cjs/loader:1153:10)
     at Module.load (node:internal/modules/cjs/loader:981:32)
     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
     at Module.require (node:internal/modules/cjs/loader:1005:19)

NodeJS 16 seems broken

Greetings,
Stephan





More information about the openindiana-discuss mailing list