Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM on IPFS cannot be installed on macOS Catalina #119

Open
rex4539 opened this issue Oct 19, 2019 · 7 comments
Open

NPM on IPFS cannot be installed on macOS Catalina #119

rex4539 opened this issue Oct 19, 2019 · 7 comments

Comments

@rex4539
Copy link

rex4539 commented Oct 19, 2019

3054 warn checkPermissions Missing write access to /usr/local/lib/node_modules
3055 timing stage:rollbackFailedOptional Completed in 0ms
3056 timing stage:runTopLevelLifecycles Completed in 21706ms
3057 verbose stack Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
3058 verbose cwd /Users/rex/ipfs-desktop
3059 verbose Darwin 19.0.0
3060 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ipfs-npm"
3061 verbose node v12.11.1
3062 verbose npm  v6.11.3
3063 error code EACCES
3064 error syscall access
3065 error path /usr/local/lib/node_modules
3066 error errno -13
3067 error Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
3067 error  [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
3067 error   stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'",
3067 error   errno: -13,
3067 error   code: 'EACCES',
3067 error   syscall: 'access',
3067 error   path: '/usr/local/lib/node_modules'
3067 error }
3068 error The operation was rejected by your operating system.
3068 error It is likely you do not have the permissions to access this file as the current user
3068 error
3068 error If you believe this might be a permissions issue, please double-check the
3068 error permissions of the file and its containing directories, or try running
3068 error the command again as root/Administrator.
3069 verbose exit [ -13, true ]

Screenshot 2019-10-19 at 14 48 03

I tried to do manual install but that failed as well...

@hacdias
Copy link
Member

hacdias commented Oct 19, 2019

@rex4539 can you globally install any other package? It seems to be a permissions error completely unrelated to IPFS Desktop or even npm-on-ipfs. Could you try installing something else globally? standard for example, to see if it works...?

@rex4539
Copy link
Author

rex4539 commented Oct 21, 2019

This worked fine.

% sudo npm install standard -g
/usr/local/bin/standard -> /usr/local/lib/node_modules/standard/bin/cmd.js
+ [email protected]
added 215 packages from 114 contributors in 12.589s

@rex4539
Copy link
Author

rex4539 commented Oct 21, 2019

This still fails.

% sudo npm install ipfs-npm -g
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/boom. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: libp2p-ping is now part of libp2p as of [email protected]. This module should no longer be used standalone.
npm WARN deprecated [email protected]: libp2p-connection-manager is now part of libp2p as of [email protected]. This module should no longer be used standalone.
npm WARN deprecated [email protected]: libp2p-switch is now part of libp2p as of [email protected]. This module should no longer be used standalone.
npm WARN deprecated [email protected]: libp2p-identify is now part of libp2p as of [email protected]. This module should no longer be used standalone.
npm WARN deprecated [email protected]: Circuit is now part of libp2p as of [email protected]. This module should no longer be used standalone.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/joi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version of hapi to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/bourne. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm WARN deprecated [email protected]: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated [email protected]: libp2p-connection-manager is now part of libp2p as of [email protected]. This module should no longer be used standalone.
npm WARN deprecated [email protected]: libp2p-switch is now part of libp2p as of [email protected]. This module should no longer be used standalone.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
/usr/local/bin/yarn-ipfs -> /usr/local/lib/node_modules/ipfs-npm/src/cli/bin.js
/usr/local/bin/ipfs-npm -> /usr/local/lib/node_modules/ipfs-npm/src/cli/bin.js
/usr/local/bin/ipfs-yarn -> /usr/local/lib/node_modules/ipfs-npm/src/cli/bin.js
/usr/local/bin/npm-ipfs -> /usr/local/lib/node_modules/ipfs-npm/src/cli/bin.js

> [email protected] install /usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v72 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/build' 
gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/Users/rex/Library/Caches/node-gyp/12.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/.node-gyp'
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/build/gcstats/v1.4.0/Release/node-v72-darwin-x64/gcstats.node" "--module_name=gcstats" "--module_path=/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/build/gcstats/v1.4.0/Release/node-v72-darwin-x64" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"
gyp ERR! cwd /usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats
gyp ERR! node -v v12.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/build/gcstats/v1.4.0/Release/node-v72-darwin-x64/gcstats.node --module_name=gcstats --module_path=/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/build/gcstats/v1.4.0/Release/node-v72-darwin-x64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Darwin 19.0.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats
node-pre-gyp ERR! node -v v12.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/build/gcstats/v1.4.0/Release/node-v72-darwin-x64/gcstats.node --module_name=gcstats --module_path=/usr/local/lib/node_modules/ipfs-npm/node_modules/gc-stats/build/gcstats/v1.4.0/Release/node-v72-darwin-x64 --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)

> [email protected] install /usr/local/lib/node_modules/ipfs-npm/node_modules/keccak
> npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation will be used."


> [email protected] rebuild /usr/local/lib/node_modules/ipfs-npm/node_modules/keccak
> node-gyp rebuild

gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/Users/rex/Library/Caches/node-gyp/12.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/ipfs-npm/node_modules/keccak/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ipfs-npm/node_modules/keccak/.node-gyp'
gyp ERR! System Darwin 19.0.0
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 /usr/local/lib/node_modules/ipfs-npm/node_modules/keccak
gyp ERR! node -v v12.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Keccak bindings compilation fail. Pure JS implementation will be used.

> [email protected] install /usr/local/lib/node_modules/ipfs-npm/node_modules/secp256k1
> npm run rebuild || echo "Secp256k1 bindings compilation fail. Pure JS implementation will be used."


> [email protected] rebuild /usr/local/lib/node_modules/ipfs-npm/node_modules/secp256k1
> node-gyp rebuild

gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/Users/rex/Library/Caches/node-gyp/12.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/ipfs-npm/node_modules/secp256k1/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ipfs-npm/node_modules/secp256k1/.node-gyp'
gyp ERR! System Darwin 19.0.0
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 /usr/local/lib/node_modules/ipfs-npm/node_modules/secp256k1
gyp ERR! node -v v12.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Secp256k1 bindings compilation fail. Pure JS implementation will be used.

> [email protected] install /usr/local/lib/node_modules/ipfs-npm/node_modules/tiny-secp256k1
> npm run build || echo "secp256k1 bindings compilation fail. Pure JS implementation will be used."


> [email protected] build /usr/local/lib/node_modules/ipfs-npm/node_modules/tiny-secp256k1
> node-gyp rebuild

gyp WARN EACCES user "nobody" does not have permission to access the dev dir "/Users/rex/Library/Caches/node-gyp/12.11.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/ipfs-npm/node_modules/tiny-secp256k1/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ipfs-npm/node_modules/tiny-secp256k1/.node-gyp'
gyp ERR! System Darwin 19.0.0
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 /usr/local/lib/node_modules/ipfs-npm/node_modules/tiny-secp256k1
gyp ERR! node -v v12.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
secp256k1 bindings compilation fail. Pure JS implementation will be used.

> [email protected] install /usr/local/lib/node_modules/ipfs-npm/node_modules/ursa-optional
> node rebuild.js

ursaNative bindings compilation fail. This is not an issue. Modules that depend on it will use fallbacks.
fs.js:130
    throw err;
    ^

Error: EACCES: permission denied, open './stdout.log'
    at Object.openSync (fs.js:451:3)
    at Object.writeFileSync (fs.js:1276:35)
    at Object.<anonymous> (/usr/local/lib/node_modules/ipfs-npm/node_modules/ursa-optional/rebuild.js:13:10)
    at Module._compile (internal/modules/cjs/loader.js:945:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:962:10)
    at Module.load (internal/modules/cjs/loader.js:798:32)
    at Function.Module._load (internal/modules/cjs/loader.js:711:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1014:10)
    at internal/main/run_main_module.js:17:11 {
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: './stdout.log'
}
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/ipfs-npm/node_modules/gc-stats):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node rebuild.js`
npm ERR! Exit status 1

@hacdias hacdias transferred this issue from ipfs/ipfs-desktop Oct 21, 2019
@hacdias
Copy link
Member

hacdias commented Oct 21, 2019

Although I think this is just a permissions error, I'm moving this to npm-on-ipfs repository where you can get more help. On my case, I'm using Catalina and I have no issues related to permissions. However, my npm installation does not install to /usr/local/bin which usually is more protected.

I will note that the install on my computer also logs errors even though it ends up installing correctly:

../src/rabin_wrap.cc:11:56: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
    uint8_t *buf = (uint8_t*) node::Buffer::Data(bufs->Get(i));
                                                       ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8.h:3423:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
  ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../src/rabin_wrap.cc:12:42: warning: 'Get' is deprecated: Use maybe version [-Wdeprecated-declarations]
    int len = node::Buffer::Length(bufs->Get(i));
                                         ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8.h:3423:3: note: 'Get' has been explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(uint32_t index));
  ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../src/rabin_wrap.cc:24:16: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
      lengths->Set(chunk_idx++, Nan::New<Number>(hasher->chunk_length));
               ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8.h:3374:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATE_SOON("Use maybe version",
  ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8config.h:326:29: note: expanded from macro 'V8_DEPRECATE_SOON'
  declarator __attribute__((deprecated(message)))
                            ^
../src/rabin_wrap.cc:52:47: error: too few arguments to function call, single argument 'context' was not specified
  handle->average_bits = info[0]->Uint32Value();
                         ~~~~~~~~~~~~~~~~~~~~ ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8.h:2574:3: note: 'Uint32Value' declared here
  V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
  ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/rabin_wrap.cc:53:42: error: too few arguments to function call, single argument 'context' was not specified
  handle->minsize = info[1]->Uint32Value();
                    ~~~~~~~~~~~~~~~~~~~~ ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8.h:2574:3: note: 'Uint32Value' declared here
  V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
  ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/rabin_wrap.cc:54:42: error: too few arguments to function call, single argument 'context' was not specified
  handle->maxsize = info[2]->Uint32Value();
                    ~~~~~~~~~~~~~~~~~~~~ ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8.h:2574:3: note: 'Uint32Value' declared here
  V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
  ^
/Users/henriquedias/Library/Caches/node-gyp/12.8.0/include/node/v8config.h:351:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
3 warnings and 3 errors generated.
make: *** [Release/obj.target/rabin/src/rabin_wrap.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack     at ChildProcess.emit (events.js:203:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/Cellar/node/12.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/henriquedias/.npm-global/lib/node_modules/ipfs-npm/node_modules/rabin
gyp ERR! node -v v12.8.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/ipfs-npm/node_modules/rabin):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `prebuild-install || node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

@hacdias
Copy link
Member

hacdias commented Oct 21, 2019

@rex4539 I see you already had opened an issue here #118. I'm closing that one since this once has more details.

@victoriatomzik
Copy link

Similar error here, macOS Catalina, anyone has a clue what can be done with this?

@JohnKnust
Copy link

Hi guys, I run on mac OS BigSure 11.2.1 (20D74) into the same problem and found a solution.

First I was using the installer from node webpage, guess this was the first problem because everything was created as root.
According to your error:

3067 error Error: EACCES: permission denied, access '/usr/local/lib/node_modules'

I first solved it partly by changing the ownership as described here: stackoverflow.com
Next, npm raised new errors.

I left the system's installation as followed a guide to install via nvm. I hit enter for the install -g ipfs command again, and it worked like a charm.

npm WARN ipfs-daemon@0.5.2 requires a peer of electron-webrtc@^0.3.0, but none is installed. You must install peer dependencies yourself.
npm WARN ipfs-daemon@0.5.2 requires a peer of wrtc@^0.4.6, but none is installed. You must install peer dependencies yourself.
npm WARN prometheus-gc-stats@0.6.3 requires a peer of prom-client@>= 10 <= 12, but none is installed. You must install peer dependencies yourself.

+ ipfs@0.54.2
added 818 packages from 1221 contributors in 87.756s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants