在新的(现有项目)中安装时,我收到以下信息。需要用于.@sentry/[email protected]
node_modules
@sentry/webpack-plugin
有什么方法可以找到有关“未知系统错误-122”的更多信息吗?npm 调试日志没有关于该错误的更多信息,如下所示。
user@host ~/project $ rm -rf node_modules
user@host ~/project $ npm install --no-save @sentry/[email protected]
> @uirouter/[email protected] install /home/user/project/node_modules/@uirouter/angularjs/node_modules/@uirouter/core
> node ./migrate/migratewarn.js
> [email protected] install /home/user/project/node_modules/strong-ursa
> node-gyp rebuild
make: Entering directory '/home/user/project/node_modules/strong-ursa/build'
CXX(target) Release/obj.target/ursaNative/src/ursaNative.o
SOLINK_MODULE(target) Release/obj.target/ursaNative.node
COPY Release/ursaNative.node
make: Leaving directory '/home/user/project/node_modules/strong-ursa/build'
> @uirouter/[email protected] install /home/user/project/node_modules/@uirouter/angularjs
> node migrate/migratewarn.js
> @sentry/[email protected] install /home/user/project/node_modules/@sentry/cli
> node scripts/install.js
fs.js:1918
binding.copyFile(src, dest, flags);
^
Error: Unknown system error -122: Unknown system error -122, copyfile '/home/user/.npm/sentry-cli/75353c-sentry-cli-Linux-x86-64' -> '/home/user/project/node_modules/@sentry/cli/sentry-cli'
at fs.copyFileSync (fs.js:1918:11)
at downloadBinary (/home/user/project/node_modules/@sentry/cli/scripts/install.js:112:5)
at Object.<anonymous> (/home/user/project/node_modules/@sentry/cli/scripts/install.js:178:1)
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 Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @sentry/[email protected] install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @sentry/[email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
答案1
当我将节点升级到> v8时,我遇到了同样的错误
fs.js:1919
binding.copyFile(src, dest, flags);
npm audit fix
解决方案是使用我不确定升级的许多软件包中的哪一个解决了问题,升级我的 npm 软件包