我正在尝试在以下节点上安装此模块:hdf5
问题是,如果我启动命令
npm install --save hdf5
安装失败并出现以下错误:
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/**my-node-project-path**/node_modules/hdf5/build'
gyp ERR! System Linux 4.15.0-33-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--jobs" "max"
gyp ERR! cwd **my-node-project-path+++/node_modules/hdf5
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN **my-project-name***@1.0.0 No description
npm WARN **my-project-name***@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: exiftool-vendored.exe@11.6.0 (node_modules/exiftool-vendored.exe):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for exiftool-vendored.exe@11.6.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hdf5@0.3.4 install: `node-gyp rebuild --jobs max`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hdf5@0.3.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! **my-user-folder**/.npm/_logs/2018-09-04T15_33_51_605Z-debug.log
我不知道这是什么错误,我也尝试过使用sudo
安装模块,但没有任何变化