npm 启动节点:内部/模块/cjs/loader:985 const err = new Error(message); ^
错误:找不到模块“semver”需要堆栈:
- /usr/share/nodejs/npm/lib/utils/unsupported.js
- /usr/share/nodejs/npm/lib/cli.js
- /usr/share/nodejs/npm/bin/npm-cli.js 在 Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15) 在 Function.Module._load (node:internal/modules/cjs/loader:833:27) 在 Module.require (node:internal/modules/cjs/loader:1057:19) 在 require (node:internal/modules/cjs/helpers:103:18) 在 Object. (/usr/share/nodejs/npm/lib/utils/unsupported.js:2:16)在 Module._compile 处(node:internal/modules/cjs/loader:1155:14)在 Object.Module._extensions..js 处(node:internal/modules/cjs/loader:1209:10)在 Module.load 处(node:internal/modules/cjs/loader:1033:32)在 Function.Module._load 处(node:internal/modules/cjs/loader:868:12)在 Module.require 处(node:internal/modules/cjs/loader:1057:19){代码:'MODULE_NOT_FOUND',requireStack:['/usr/share/nodejs/npm/lib/utils/unsupported.js','/usr/share/nodejs/npm/lib/cli.js',复制代码