【发布时间】:2022-11-02 17:00:05
【问题描述】:
我已经从 nodejs 网站下载了 nodejs 存储库,我想通过 bin 目录中的节点文件安装它,我想使用 gdebi 或软件安装程序应用程序安装它,但错误是: 用于 gdebi 和 用于软件安装程序实际上我已经检查了权限并激活了它们,这是我运行 npx create-react-app name 时的错误
internal/modules/cjs/loader.js:818
throw err;
^
Error: Cannot find module 'ini'
Require stack:
- /usr/share/nodejs/@npmcli/config/lib/index.js
- /usr/share/nodejs/npm/lib/utils/config/definition.js
- /usr/share/nodejs/npm/lib/utils/config/definitions.js
- /usr/share/nodejs/npm/lib/utils/config/flatten.js
- /usr/share/nodejs/npm/lib/utils/config/index.js
- /usr/share/nodejs/npm/bin/npx-cli.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/usr/share/nodejs/@npmcli/config/lib/index.js:3:13)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/share/nodejs/@npmcli/config/lib/index.js',
'/usr/share/nodejs/npm/lib/utils/config/definition.js',
'/usr/share/nodejs/npm/lib/utils/config/definitions.js',
'/usr/share/nodejs/npm/lib/utils/config/flatten.js',
'/usr/share/nodejs/npm/lib/utils/config/index.js',
'/usr/share/nodejs/npm/bin/npx-cli.js'
]
}
【问题讨论】:
标签: node.js reactjs linux react-native ubuntu