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

It seems that yarn global add @hyperspace/cli does not work #23

Open
raphael10-collab opened this issue Sep 25, 2021 · 0 comments
Open

Comments

@raphael10-collab
Copy link

raphael10-collab commented Sep 25, 2021

It seems that yarn global add @hyperspace/cli does not work :

(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ npm uninstall -g @hyperspace/cli
npm WARN deprecated [email protected]: "Please update to latest v2.3 or v2.2"
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/@hyperspace/cli/node_modules/chokidar/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 WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules/@hyperspace/cli/node_modules/mocha/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

removed 387 packages in 3.179s
(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ yarn global add @hyperspace/cli
yarn global v1.22.5
warning package.json: No license field
[1/4] Resolving packages...
warning @hyperspace/cli > random-words > mocha > [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning @hyperspace/cli > random-words > mocha > chokidar > [email protected]: "Please update to latest v2.3 or v2.2"
warning @hyperspace/cli > username > execa > [email protected]: cross-spawn no longer requires a build toolchain, use it instead
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "@hyperspace/[email protected]" with binaries:
      - hyp
Done in 81.66s.
(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ hyp info
bash: /home/marco/.nvm/versions/node/v14.17.0/bin/hyp: No such file or directory
(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ hyp daemon start
bash: /home/marco/.nvm/versions/node/v14.17.0/bin/hyp: No such file or directory
(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ 

While npm install -g @hyperspace/cli does actually work:

(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ npm install -g @hyperspace/cli
npm WARN deprecated [email protected]: "Please update to latest v2.3 or v2.2"
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
/home/marco/.nvm/versions/node/v14.17.0/bin/hyp -> /home/marco/.nvm/versions/node/v14.17.0/lib/node_modules/@hyperspace/cli/bin/hyp.js

> [email protected] install /home/marco/.nvm/versions/node/v14.17.0/lib/node_modules/@hyperspace/cli/node_modules/fd-lock
> node-gyp-build


> [email protected] install /home/marco/.nvm/versions/node/v14.17.0/lib/node_modules/@hyperspace/cli/node_modules/fsctl
> node-gyp-build


> [email protected] install /home/marco/.nvm/versions/node/v14.17.0/lib/node_modules/@hyperspace/cli/node_modules/sodium-native
> node-gyp-build "node preinstall.js" "node postinstall.js"


> [email protected] install /home/marco/.nvm/versions/node/v14.17.0/lib/node_modules/@hyperspace/cli/node_modules/utp-native
> node-gyp-build


> [email protected] install /home/marco/.nvm/versions/node/v14.17.0/lib/node_modules/@hyperspace/cli/node_modules/leveldown
> node-gyp-build

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/@hyperspace/cli/node_modules/chokidar/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 WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.1 (node_modules/@hyperspace/cli/node_modules/mocha/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ @hyperspace/[email protected]
added 387 packages from 213 contributors in 98.05s
(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ hyp info
The daemon is not active. Please run:

  hyp daemon start

(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ hyp daemon start
Hyperspace daemon started
Mirroring daemon started
Daemon is running.
(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ hyp info
No hypers active.
(base) marco@marco-U36SG:~/hypercore/hypercore-protocol$ 

node : v14.17.0
O.S. : Ubuntu 20.04 Desktop

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

1 participant