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

Dev container: Fresh dev container fails to install dependencies #2149

Closed
Altair-Bueno opened this issue Jun 13, 2023 · 1 comment · Fixed by #2170
Closed

Dev container: Fresh dev container fails to install dependencies #2149

Altair-Bueno opened this issue Jun 13, 2023 · 1 comment · Fixed by #2170
Assignees
Labels
Milestone

Comments

@Altair-Bueno
Copy link

Describe the bug

Dev container fails to install dependencies.

Expected behavior

Fresh dev container to boot successfully.

Steps to reproduce the issue

Load the dev container following the README instructions

Screenshots

No response

In which browser are you experiencing the issue?

Which Version of JSON Forms are you using?

master branch

Framework

No response

RendererSet

No response

Additional context

Log

Running the postCreateCommand from devcontainer.json...

[12366 ms] Start: Run in container: /bin/sh -c npm ci && npm run init && npm run build
npm WARN prepare removing existing node_modules/ before installation

> fsevents@1.2.13 install /workspaces/jsonforms/node_modules/watchpack-chokidar2/node_modules/fsevents
> node install.js


Skipping 'fsevents' build as platform linux is not supported

> core-js@3.26.1 postinstall /workspaces/jsonforms/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js:
> https://opencollective.com/core-js 
> https://patreon.com/zloirock 
> bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> core-js@2.6.12 postinstall /workspaces/jsonforms/node_modules/empower-core/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> core-js@2.6.12 postinstall /workspaces/jsonforms/node_modules/call-matcher/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> core-js@2.6.12 postinstall /workspaces/jsonforms/node_modules/espurify/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> core-js@2.6.12 postinstall /workspaces/jsonforms/node_modules/babel-plugin-espower/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

added 1582 packages in 68.045s

> jsonforms-monorepo@ init /workspaces/jsonforms
> lerna bootstrap --hoist

lerna notice cli v3.22.1
lerna info Bootstrapping 16 packages
lerna info Installing external dependencies
lerna info hoist Installing hoisted dependencies into root
lerna info hoist Pruning hoisted dependencies
lerna info hoist Finished pruning hoisted dependencies
lerna ERR! Error: Command failed: npm install
lerna ERR! 
lerna ERR!     at makeError (/workspaces/jsonforms/node_modules/@lerna/child-process/node_modules/execa/index.js:174:9)
lerna ERR!     at /workspaces/jsonforms/node_modules/@lerna/child-process/node_modules/execa/index.js:278:16
lerna ERR!     at runMicrotasks (<anonymous>)
lerna ERR! lerna Command failed: npm install
lerna ERR! lerna 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jsonforms-monorepo@ init: `lerna bootstrap --hoist`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the jsonforms-monorepo@ init script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2023-06-13T15_31_06_075Z-debug.log
[272836 ms] postCreateCommand failed with exit code 1. Skipping any further user-provided commands.
Done. Press any key to close the terminal.

@lucas-koehler
Copy link
Contributor

Hi @Altair-Bueno ,
thanks for the report :). We are currently switching the build stack from node 14, npm, lerna 3 to node 16, lerna 6 and pnpm.
We'll check that the dev container works with the new setup once it its merged (see open PR: #2148).
Due to limited resources we won't investigate fixing this right before changing the setup but I'll leave this issue open as a reminder to fix it for the new setup.

@lucas-koehler lucas-koehler added this to the 3.x milestone Jun 15, 2023
lucas-koehler added a commit that referenced this issue Aug 11, 2023
- Update base image to version 1.x
- Install chromium to enable running angular-material tests in the container
- Extend README with hint to clean repo in case initialization fails

Fix #2149
@lucas-koehler lucas-koehler self-assigned this Aug 11, 2023
sdirix pushed a commit that referenced this issue Aug 21, 2023
- Update base image to version 1.x
- Install chromium to enable running angular-material tests in the container
- Extend README with hint to clean repo in case initialization fails

Fix #2149
@lucas-koehler lucas-koehler modified the milestones: 3.x, 3.2 Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants