Npm not working

trying to rebuild or install console respond:

app@leafskybot:~ 15:31
$ npm rebuild
TypeError: Cannot destructure property stat of ‘undefined’ or ‘null’.
at Object. (/rbd/pnpm-volume/75bd34a4-f67d-4d7e-8d60-6286e61cd36e/node_modules/.registry.npmjs.org/npm/7.0.6/node_modules/npm/node_modules/@npmcli/node-gyp/lib/index.js:2:29)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/rbd/pnpm-volume/75bd34a4-f67d-4d7e-8d60-6286e61cd36e/node_modules/.registry.npmjs.org/npm/7.0.6/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:4:55)
at Module._compile (module.js:653:30)
/rbd/pnpm-volume/75bd34a4-f67d-4d7e-8d60-6286e61cd36e/node_modules/.registry.npmjs.org/npm/7.0.6/node_modules/npm/node_modules/@npmcli/config/lib/index.js:163
throw new Error(‘call config.load() before reading values’)
^

Error: call config.load() before reading values
at Config.get (/rbd/pnpm-volume/75bd34a4-f67d-4d7e-8d60-6286e61cd36e/node_modules/.registry.npmjs.org/npm/7.0.6/node_modules/npm/node_modules/@npmcli/config/lib/index.js:163:13)
at process.errorHandler (/rbd/pnpm-volume/75bd34a4-f67d-4d7e-8d60-6286e61cd36e/node_modules/.registry.npmjs.org/npm/7.0.6/node_modules/npm/lib/utils/error-handler.js:173:32)
at emitOne (events.js:116:13)
at process.emit (events.js:211:7)
at process._fatalException (bootstrap_node.js:391:26)

welp me.


Did you try doing this?

enable-pnpm

1 Like

still error. with same errror.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.