What is Nostr?
AsaiToshiya /
npub1pgh…rs38
2024-10-31 16:20:21

AsaiToshiya on Nostr: TypeError: Class extends value undefined is not a constructor or null ``` $ npm -v ...

TypeError: Class extends value undefined is not a constructor or null

```
$ npm -v
/usr/local/lib/node_modules/npm/lib/cli/validate-engines.js:31
throw err
^

TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/fs-minipass/lib/index.js:136:4)
at Module._compile (node:internal/modules/cjs/loader:1546:14)
at Object..js (node:internal/modules/cjs/loader:1689:10)
at Module.load (node:internal/modules/cjs/loader:1318:32)
at Function._load (node:internal/modules/cjs/loader:1128:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:141:16)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/log-file.js:3:20)

Node.js v22.11.0
```

一旦 `/usr/local/lib/node_modules/npm` を削除してから再インストールする

```
$ sudo rm -rf /usr/local/lib/node_modules/npm
```

#Linux #NodeJS #トラブルシューティング
Author Public Key
npub1pgh3nhq6rpte9sasxah36luewy54azfjjekrj7f45hwa69z35fdqfdrs38