balena-io-modules / drivelist

List all connected drives in your computer, in all major operating systems
Apache License 2.0
242 stars 90 forks source link

Ubuntu 19.10 arm64 EACCES #355

Open isteiger opened 4 years ago

isteiger commented 4 years ago

When building on arm64 I get: `prebuild-install WARN install No prebuilt binaries found (target=11.15.0 runtime=node arch=arm64 libc= platform=linux) gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/root/node_modules/drivelist/build' gyp ERR! System Linux 5.3.0-1008-raspi2 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /root/node_modules/drivelist gyp ERR! node -v v11.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! drivelist@8.0.9 install: prebuild-install || node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the drivelist@8.0.9 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! /root/.npm/_logs/2019-11-11T16_19_35_450Z-debug.log ` I originally used it with a normal account, but that didn't work so I thought it would work with root.