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

Issue with yarn install on WSL Ubuntu #438

Open
Ferko9966 opened this issue Mar 24, 2024 · 0 comments
Open

Issue with yarn install on WSL Ubuntu #438

Ferko9966 opened this issue Mar 24, 2024 · 0 comments

Comments

@Ferko9966
Copy link

Ferko9966 commented Mar 24, 2024

Hi, very excited about using showwhy but new to the Docker/Minikube/Ubuntu world. Went through the process as described below on WSL / Ubuntu but get an error when I run yarn install. Went through forums, ChatGPT, etc. but to no avail. Posting here in despair. Thanks.

Installed Docker and Minikube on WSL Ubuntu
https://blog.ineat-group.com/2020/06/utiliser-kubernetes-en-local-avec-minikube-sous-windows-10/

kubectl top nodes
NAME       CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
minikube   191m         0%     1993Mi          6%
kubectl top pods -A
NAMESPACE              NAME                                         CPU(cores)   MEMORY(bytes)
ingress-nginx          ingress-nginx-controller-7c6974c4d8-j7gqn    4m           451Mi
...

Installed yarn
https://dev.to/bonstine/installing-yarn-on-wsl-38p2

curl -o- -L https://yarnpkg.com/install.sh | bash
yarn --version
3.3.1

Installed node.js
https://phoenixnap.com/kb/install-latest-node-js-and-nmp-on-ubuntu

sudo apt update
sudo apt install nodejs
nodejs -v
v12.22.9

Clone the repository

git clone https://github.com/microsoft/showwhy.git showwhy
cd showwhy

5.1. Build frontend service bundle
yarn install

➤ YN0000: ┌ Resolution step
➤ YN0002: │ @datashaper/app-framework@npm:0.4.1 [14e74] doesn't provide react-dom (pac89b), requested by @monaco-editor/react
➤ YN0002: │ @datashaper/app-framework@npm:0.4.1 [14e74] doesn't provide react-dom (p99ba2), requested by allotment
➤ YN0002: │ @datashaper/app-framework@npm:0.4.1 [14e74] doesn't provide react-dom (pc6ee3), requested by observable-hooks
➤ YN0002: │ @datashaper/app-framework@npm:0.4.1 [5996f] doesn't provide react-dom (pd9750), requested by @monaco-editor/react
➤ YN0002: │ @datashaper/app-framework@npm:0.4.1 [5996f] doesn't provide react-dom (p3387a), requested by allotment
➤ YN0002: │ @datashaper/app-framework@npm:0.4.1 [5996f] doesn't provide react-dom (pff9cf), requested by observable-hooks
➤ YN0002: │ @datashaper/react@npm:20.0.7 [14e74] doesn't provide react-dom (pef4f8), requested by observable-hooks
➤ YN0002: │ @datashaper/react@npm:20.0.7 [5996f] doesn't provide react-dom (p15b1d), requested by observable-hooks
➤ YN0002: │ @datashaper/react@npm:20.0.7 [76174] doesn't provide react-dom (p6c844), requested by observable-hooks
➤ YN0002: │ @devtools-ds/themes@npm:1.2.1 [f6085] doesn't provide react-dom (pdb4ec), requested by @design-systems/utils
➤ YN0002: │ @fluentui/react-icons-mdl2@npm:1.3.29 [5996f] doesn't provide @types/react-dom (pc7869), requested by @fluentui/react-icon-provider
➤ YN0002: │ @fluentui/react-icons-mdl2@npm:1.3.29 [5996f] doesn't provide react-dom (pdf192), requested by @fluentui/react-icon-provider
➤ YN0002: │ @showwhy/discover-app@workspace:javascript/app-discover doesn't provide @babel/core (pf56a3), requested by babel-plugin-transform-import-meta
➤ YN0060: │ @showwhy/discover-app@workspace:javascript/app-discover provides @types/react (pc0f22) with version 18.0.27, which doesn't satisfy what @uifabric/icons and some of its descendants request
➤ YN0060: │ @showwhy/discover-app@workspace:javascript/app-discover provides react (p54a51) with version 18.2.0, which doesn't satisfy what @uifabric/icons and some of its descendants request
➤ YN0060: │ @showwhy/discover-app@workspace:javascript/app-discover provides react (pe7763) with version 18.2.0, which doesn't satisfy what react-zoom-pan-pinch requests
➤ YN0060: │ @showwhy/discover-app@workspace:javascript/app-discover provides react (p70d6e) with version 18.2.0, which doesn't satisfy what redbox-react requests
➤ YN0060: │ @showwhy/discover-app@workspace:javascript/app-discover provides react-dom (p44332) with version 18.2.0, which doesn't satisfy what react-zoom-pan-pinch requests
➤ YN0060: │ @showwhy/discover-app@workspace:javascript/app-discover provides react-dom (pfe577) with version 18.2.0, which doesn't satisfy what redbox-react requests
➤ YN0002: │ @showwhy/discover-app@workspace:javascript/app-discover doesn't provide vite (p904c6), requested by @essex/vite-config
➤ YN0060: │ @showwhy/event-analysis-app@workspace:javascript/app-event-analysis provides @types/react (p81e02) with version 18.0.27, which doesn't satisfy what @uifabric/icons and some of its descendants request
➤ YN0060: │ @showwhy/event-analysis-app@workspace:javascript/app-event-analysis provides react (p69664) with version 18.2.0, which doesn't satisfy what @uifabric/icons and some of its descendants request
➤ YN0060: │ @showwhy/event-analysis-app@workspace:javascript/app-event-analysis provides react (pe1048) with version 18.2.0, which doesn't satisfy what redbox-react requests
➤ YN0060: │ @showwhy/event-analysis-app@workspace:javascript/app-event-analysis provides react (p9b1cb) with version 18.2.0, which doesn't satisfy what @storybook/react and some of its descendants request
➤ YN0060: │ @showwhy/event-analysis-app@workspace:javascript/app-event-analysis provides react-dom (pbfed7) with version 18.2.0, which doesn't satisfy what redbox-react requests
➤ YN0060: │ @showwhy/event-analysis-app@workspace:javascript/app-event-analysis provides react-dom (pc6d3a) with version 18.2.0, which doesn't satisfy what @storybook/react and some of its descendants request
➤ YN0002: │ @showwhy/event-analysis-app@workspace:javascript/app-event-analysis doesn't provide require-from-string (pdc050), requested by @storybook/react
➤ YN0060: │ @showwhy/model-exposure-app@workspace:javascript/app-model-exposure provides @types/react (pce469) with version 18.0.27, which doesn't satisfy what @uifabric/icons and some of its descendants request
➤ YN0060: │ @showwhy/model-exposure-app@workspace:javascript/app-model-exposure provides react (p25cca) with version 18.2.0, which doesn't satisfy what @uifabric/icons and some of its descendants request
➤ YN0060: │ @showwhy/model-exposure-app@workspace:javascript/app-model-exposure provides react (pa6177) with version 18.2.0, which doesn't satisfy what redbox-react requests
➤ YN0060: │ @showwhy/model-exposure-app@workspace:javascript/app-model-exposure provides react-dom (p26be3) with version 18.2.0, which doesn't satisfy what redbox-react requests
➤ YN0002: │ @showwhy/stories@workspace:javascript/stories doesn't provide @types/react (pb4435), requested by @fluentui/react
➤ YN0002: │ @showwhy/stories@workspace:javascript/stories doesn't provide @types/react-dom (p6d06b), requested by @fluentui/react
➤ YN0060: │ @showwhy/stories@workspace:javascript/stories provides react (pddd0a) with version 18.2.0, which doesn't satisfy what @mdx-js/react requests
➤ YN0060: │ @showwhy/stories@workspace:javascript/stories provides react (p865b3) with version 18.2.0, which doesn't satisfy what @storybook/addon-actions and some of its descendants request
➤ YN0060: │ @showwhy/stories@workspace:javascript/stories provides react (p792a3) with version 18.2.0, which doesn't satisfy what @storybook/react and some of its descendants request
➤ YN0060: │ @showwhy/stories@workspace:javascript/stories provides react-dom (pbe54f) with version 18.2.0, which doesn't satisfy what @storybook/react and some of its descendants request
➤ YN0002: │ @showwhy/stories@workspace:javascript/stories doesn't provide require-from-string (p1e11e), requested by @storybook/react
➤ YN0002: │ @showwhy/stories@workspace:javascript/stories doesn't provide webpack (pd3bb3), requested by babel-loader
➤ YN0002: │ @showwhy/stories@workspace:javascript/stories doesn't provide webpack (p494b8), requested by resolve-typescript-plugin
➤ YN0060: │ @showwhy/webapp@workspace:javascript/webapp provides @types/react (p96cc3) with version 18.0.27, which doesn't satisfy what @uifabric/icons and some of its descendants request
➤ YN0060: │ @showwhy/webapp@workspace:javascript/webapp provides react (pfea65) with version 18.2.0, which doesn't satisfy what @uifabric/icons and some of its descendants request
➤ YN0060: │ @showwhy/webapp@workspace:javascript/webapp provides react (p42201) with version 18.2.0, which doesn't satisfy what redbox-react requests
➤ YN0060: │ @showwhy/webapp@workspace:javascript/webapp provides react-dom (peb8f1) with version 18.2.0, which doesn't satisfy what redbox-react requests
➤ YN0002: │ @storybook/addon-docs@npm:6.5.15 [9a8fa] doesn't provide webpack (p7090a), requested by babel-loader
➤ YN0002: │ @storybook/docs-tools@npm:6.5.15 doesn't provide react (p5aca9), requested by @storybook/store
➤ YN0002: │ @storybook/docs-tools@npm:6.5.15 doesn't provide react-dom (pda8c4), requested by @storybook/store
➤ YN0002: │ @storybook/mdx1-csf@npm:0.0.1 doesn't provide @babel/core (p44796), requested by @babel/preset-env
➤ YN0002: │ @storybook/telemetry@npm:6.5.15 doesn't provide react (p1e5d6), requested by @storybook/core-common
➤ YN0002: │ @storybook/telemetry@npm:6.5.15 doesn't provide react-dom (p60a6f), requested by @storybook/core-common
➤ YN0002: │ @uifabric/icons@npm:7.9.5 [5996f] doesn't provide @types/react-dom (pb342f), requested by @uifabric/utilities
➤ YN0002: │ @uifabric/icons@npm:7.9.5 [5996f] doesn't provide @types/react-dom (p47323), requested by @uifabric/styling
➤ YN0002: │ @uifabric/icons@npm:7.9.5 [5996f] doesn't provide react-dom (p15cd5), requested by @uifabric/utilities
➤ YN0002: │ @uifabric/icons@npm:7.9.5 [5996f] doesn't provide react-dom (p7a4fb), requested by @uifabric/styling
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 287ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 600ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ rome@npm:11.0.0 must be built because it never has been before or the last one failed
➤ YN0009: │ rome@npm:11.0.0 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-01365e73/build.log)
➤ YN0000: └ Completed in 0s 319ms
➤ YN0000: Failed with errors in 1s 290ms

more /tmp/xfs-01365e73/build.log

# This file contains the result of Yarn building a package (rome@npm:11.0.0)
# Script name: postinstall

/home/ferko/showwhy/.yarn/unplugged/rome-npm-11.0.0-22ed7a887e/node_modules/rome/scripts/postinstall.js:18
const binName = PLATFORMS?.[platform]?.[arch];
                          ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Object.require$$0.Module._extensions..js (/home/ferko/showwhy/.pnp.cjs:44561:33)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.require$$0.Module._load (/home/ferko/showwhy/.pnp.cjs:44380:22)
    at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:188:29)
    at ModuleJob.run (internal/modules/esm/module_job.js:145:37)
    at async Loader.import (internal/modules/esm/loader.js:182:24)
    at async Object.loadESM (internal/process/esm_loader.js:68:5)

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