-
Notifications
You must be signed in to change notification settings - Fork 779
Build Fail on MacOs Mojave #279
Comments
Same here. Seems to be related to node-hid/node-hid#266. |
Thanks, will try out that solution, was using a nix environment for a temporary fix |
Hey @araa47 what sort of environment variable did you use? I still cannot npm install with node v10 on Mojave. |
If i remember correctly i removed it from the package.json and then manually installed it without specifying the version. |
It seems that is not a secure thing to do: #290 (comment) |
@PaulRBerg , thanks for raising the issue. Will flag this. Currently not using this for production. You could also try using a nix environment. My nix-shell file looks like this , this might solve the problem. Let me know. You need to first install nix, then create a shell.nix file with the below contents. Feel free to change this according to your needs, this is the template i have with some specific dependencies on my set-up with import (builtins.fetchTarball "https://d3g5gsiof5omrk.cloudfront.net/nixpkgs/nixpkgs-18.09pre144939.14a9ca27e69/nixexprs.tar.xz") {};
let
nodejs = nodejs-8_x;
nodepkgs = nodePackages_8_x;
solc-0_4_23-tree-url = https://github.com/nixos/nixpkgs/archive/bd991be8d3cf62cc3b6c704ed0cd21b75f1ddd8a.tar.gz;
solc-0_4_23 = ((import (builtins.fetchTarball solc-0_4_23-tree-url) {}).solc);
solc23 = pkgs.runCommand "solc-0.4.23-wrapper" {} ''
mkdir -p $out/bin
echo '#!${stdenv.shell}' > $out/bin/solc23
echo 'exec ${solc-0_4_23}/bin/solc "$@"' >> $out/bin/solc23
chmod +x $out/bin/solc23
'';
in mkShell rec {
buildInputs = [
solc solc23 go-ethereum nodejs nodepkgs.pnpm nodepkgs.mocha
];
shellHook = ''
print_module_version="console.log(process.versions.modules)"
export npm_config_store=''${NPM_STORE_PREFIX-$HOME}/.pnpm-store-abi-$(${nodejs}/bin/node -e $print_module_version)
'';
} |
Interesting, I'll take a look. Is it similar to nvm? |
Its more of a functional package manager, making it easy for anyone to recreate environments regardless of running macos or linux. https://nixos.org/nix/manual/ would be a good place to start. Its an over-engineered solution for this problem though |
OS: Mac OS Mojave 10.14.4
The build seems to fail when i run
npm install
Error:
Seems to be caused by node-hid version 0.5.4
The text was updated successfully, but these errors were encountered: