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

com.vaadin.flow.server.ExecutionFailedException: npm install. Some dependencies are not installed #17302

Closed
Dharmik2510 opened this issue Jul 27, 2023 · 13 comments

Comments

@Dharmik2510
Copy link

Description of the bug

Using,
Spring boot: 3.2.1
Vaadin: 24.1.4
I am using below command on my local machine and everything is working fine.

gradle clean vaadinBuildFrontend build -DproductionMode=true -x test --stacktrace

However,
when same command is executed in gitlab pipeline it throws an exception/error:

com.vaadin.flow.server.ExecutionFailedException: npm install. Some dependencies are not installed.

I am also getting following logs:

npm ERR ! code EPROTO
npm ERR ! request to https://registery.npmjs.org/@open-wc%2fdedupe-mixin failed

Expected behavior

Application should successfully build and compile in gitlab as well.

Minimal reproducible example

NA

Versions

  • Vaadin / Flow version: 24.1.4
  • Java version: 17
  • OS version:
  • Browser version (if applicable):
  • Application Server (if applicable):
  • IDE (if applicable): IntelliJ
@mcollovati
Copy link
Collaborator

By searching a bit, it looks like this issue may be related to connections behind a proxy server.
If this is your case, you can take a look at the documentation to properly setup the proxy server settings on your CI system https://vaadin.com/docs/latest/configuration/development-mode/node-js#proxy-settings-for-downloading-the-front-end-toolchain

@Dharmik2510
Copy link
Author

It was working before without any problem. I do not know what's happening.

@mcollovati
Copy link
Collaborator

Taking a more in-depth look at the failed URL https://registery.npmjs.org/@open-wc%2fdedupe-mixin
It seems there's a typo registEry instead of registry

@Dharmik2510
Copy link
Author

Ohh yes, this is my typo here, in GitLab pipeline it's correct.

@mcollovati
Copy link
Collaborator

All the information I have found points to some proxy issue with NPM.
I currently have no other ideas other than checking the proxy settings

@mcollovati
Copy link
Collaborator

Nothing else on the logs?

@Dharmik2510
Copy link
Author

I did set

export no_proxy="registry.npmjs.org" 

in gitlab pipeline.

Not it gives me following logs:

npm WARN Could not resolve dependency
npm WARN peerOptional @open-wc/dedupe-mixin@"1.3.1" from @Vaadin/bundles@24.1.4
npm WARN ERESOLVE overriding peer dependency
npm WARN found: @open-wc/deduoe-mixin@undefined

npm ERR code E503
npm ERR 503 Service unavailable - GET https://registry.npmjs.org/rollup

@mcollovati
Copy link
Collaborator

The URL https://registry.npmjs.org/rollup works for me locally. Maybe some temporary issue on npm registry?

@Dharmik2510
Copy link
Author

I tried but still not working!

@mcollovati
Copy link
Collaborator

It may definitely be some issue with npm registry: https://status.npmjs.org/

image

@Dharmik2510
Copy link
Author

Dharmik2510 commented Jul 29, 2023

The server status is up now. However, getting the same error.

npm ERR ! code EPROTO
npm ERR ! request to https://registry.npmjs.org/rollup failed

@Dharmik2510
Copy link
Author

When I see my pipeline job logs it says:

"345 error pnpm":{

"message":{
"code": "ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND"
},
"err":{
"message": "No package.json was found in "/home/{user}/dev/{project-repo}/build/flow-frontend/form"
}

@mshabarov
Copy link
Contributor

I propose to close this ticket and follow #17318 for further investigation and discussions, as it looks like a duplicate.

OLD Vaadin Flow bugs & maintenance (Vaadin 10+) automation moved this from Needs triage to Closed Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants