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

Advanced Install Instructions Out of Date #23

Closed
alexfornuto opened this issue Aug 25, 2021 · 6 comments
Closed

Advanced Install Instructions Out of Date #23

alexfornuto opened this issue Aug 25, 2021 · 6 comments

Comments

@alexfornuto
Copy link

Following up from the tail of #19 in a new issue, since this is separate from the original issue.

Heads up, looks like the commands in #advanced are outdated:

❯ npm --version
7.21.0
❯ npm i -g lerna
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

added 55 packages, removed 102 packages, changed 570 packages, and audited 626 packages in 19s

68 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
❯ lerna bootstrap --unsafe-perm
ERR! lerna Unknown arguments: unsafe-perm, unsafePerm
❯ lerna bootstrap unsafe-perm
ERR! lerna Unknown argument: unsafe-perm
❯ lerna bootstrap unsafePerm
ERR! lerna Unknown argument: unsafePerm
❯ lerna bootstrap
lerna notice cli v4.0.0
lerna info bootstrap root only
npm ERR! code 1
npm ERR! path /home/alex/projects/web-desktop-environment/node_modules/code-server
npm ERR! command failed
npm ERR! command sh -c ./postinstall.sh
npm ERR! Please pass --unsafe-perm to npm to install code-server
npm ERR! Otherwise the postinstall script does not have permissions to run
npm ERR! See https://docs.npmjs.com/misc/config#unsafe-perm
npm ERR! See https://stackoverflow.com/questions/49084929/npm-sudo-global-installation-unsafe-perm

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alex/.npm/_logs/2021-08-25T16_59_12_097Z-debug.log
lerna ERR! npm install exited 1 in 'root'
lerna ERR! npm install exited 1 in 'root'

It looks like lerna no longer passes flags to npm: lerna/lerna#2315

Additionally, I wonder how I could install the web-desktop without code-server? I already have it running as an independent process, and don't need it in my web-desktop environment.

@alexfornuto
Copy link
Author

Another error:

pwd
/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server
❯ npm start

> @web-desktop-environment/home-edition-server@1.0.2 start
> nodemon .

[nodemon] 2.0.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/* node_modules/**/*
[nodemon] watching extensions: ts,tsx,js
[nodemon] starting `ts-node -r tsconfig-paths/register ./src/index.ts .`
[ root:desktop-manager:settings-manager ]: finish initializing settings manager 111ms
[ root:desktop-manager:port-manager ]: port 9200 is avilable as app port 3ms
[ root:desktop-manager:download-manager ]: starting static file server at port 9200 1ms
[ root:desktop-manager:port-manager ]: port 5000 is avilable as main port 0ms
[ root ]: starting web-desktop-environment on port 5000 0ms
The above error occurred in the <RenderApp> component:

    at RenderApp (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/@web-desktop-environment/server-sdk/node_modules/@react-fullstack/render/lib/render.js:14:30)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
(node:10918) UnhandledPromiseRejectionWarning: Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    at resolveDispatcher (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/@web-desktop-environment/server-sdk/node_modules/react/cjs/react.development.js:1476:13)
    at Object.useState (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/@web-desktop-environment/server-sdk/node_modules/react/cjs/react.development.js:1507:20)
    at RenderApp (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/@web-desktop-environment/server-sdk/node_modules/@react-fullstack/render/lib/render.js:14:30)
    at renderWithHooks (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/react-reconciler/cjs/react-reconciler.development.js:6412:18)
    at mountIndeterminateComponent (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/react-reconciler/cjs/react-reconciler.development.js:9238:13)
    at beginWork (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/react-reconciler/cjs/react-reconciler.development.js:10476:16)
    at Object.invokeGuardedCallbackProd (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/react-reconciler/cjs/react-reconciler.development.js:12101:10)
    at invokeGuardedCallback (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/react-reconciler/cjs/react-reconciler.development.js:12292:31)
    at beginWork$1 (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/react-reconciler/cjs/react-reconciler.development.js:16531:7)
    at performUnitOfWork (/home/alex/projects/web-desktop-environment/packages/servers/home-edition-server/node_modules/react-reconciler/cjs/react-reconciler.development.js:15340:12)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:10918) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:10918) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

shmuelhizmi added a commit that referenced this issue Sep 28, 2021
@shmuelhizmi
Copy link
Owner

@alexfornuto I have updated the advance run install instructions, thanks for the heads up

@alexfornuto
Copy link
Author

@shmuelhizmi thank you. Might you also be able to address this question?

Additionally, I wonder how I could install the web-desktop without code-server? I already have it running as an independent process, and don't need it in my web-desktop environment.

@shmuelhizmi
Copy link
Owner

@alexfornuto yes, you can install - @web-desktop-environment/home-edition-server

@alexfornuto
Copy link
Author

It took me a moment to realize that the updates were on the main branch, I think GitHub is still set to use master as the main branch. Is that intentional?

@shmuelhizmi
Copy link
Owner

should be resolved

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

2 participants