Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Problem when installing symfony webapp#54145

Unanswered
cosminsandu asked this question inQ&A
Discussion options

Symfony version(s) affected

6.4.*

Description

When I try to install symfony

symfony new my_project_directory --version="6.4.*" --webapp

i get the following error :

Script importmap:require returned with error code 1
!!
!! In ErrorChunk.php line 56:
!!
!! SSL certificate problem: certificate has expired for "https://data.jsdelivr.com/v1/packages/npm/@hotwired/stimulus/resolved?specifier=%5E3.0.0".
!!
!!
!! In CurlResponse.php line 315:
!!
!! SSL certificate problem: certificate has expired for "https://data.jsdelivr.com/v1/packages/npm/@hotwired/stimulus/resolved?specifier=%5E3.0.0".
!!
image

How to reproduce

just run:

symfony new my_project_directory --version="6.4." --webapp
or
composer create-project symfony/skeleton:"6.4.
" my_project_directory
cd my_project_directory
composer require webapp

Possible Solution

No response

Additional Context

OS: Windows 11 Pro 23H2 build 22631.3155

PHP 8.1.7 (cli) (built: Jun 7 2022 21:45:03) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.7, Copyright (c) Zend Technologies
with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans

Composer version 2.4.1 2022-08-20 11:44:50

npm -v
6.14.16

You must be logged in to vote

Replies: 7 comments 9 replies

Comment options

derrabus
Mar 4, 2024
Collaborator

I can't reproduce this issue. Moving to support.

You must be logged in to vote
1 reply
@cosminsandu
Comment options

On WSL it works ok.

Comment options

Here is a video displaying the problem:
https://www.loom.com/share/9411d470b53743aeb076714ce01d23e2?sid=97d38e5c-8abe-44ef-b755-75570bf0f9fb

You must be logged in to vote
0 replies
Comment options

@weaverryan

This seem to be related to @hotwired/stimulus/

do you have any idea what is going on?

You must be logged in to vote
0 replies
Comment options

The problem persists!

I've updated the Context:

OS: Windows 11 Pro 23H2 build 22631.3155

PHP 8.1.7 (cli) (built: Jun 7 2022 21:45:03) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.7, Copyright (c) Zend Technologies
with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans

Composer version 2.4.1 2022-08-20 11:44:50

Please let me know if any other info are nedeed.

You must be logged in to vote
0 replies
Comment options

The error message was updated:

SSL certificate problem:self signed certificate in certificate chain for "https://data.jsdelivr.com/v1/packages/npm/@hotwired/stimulus/resolved?specifier=%5E3.0.0".

image

You must be logged in to vote
7 replies
@cosminsandu
Comment options

Hi@stof.

I've disabled my antivirus (Bitdefender total security) but the problem persists!

any other ideeas?

@simplegr
Comment options

I have the same problem on windows 10. I 've tried PHP 8.1.9 and 8.2.16.

@cosminsandu
Comment options

@simplegr do you have any antivirus?

@simplegr
Comment options

@cosminsandu I disabled the antivirus, still the same.

@cosminsandu
Comment options

Same for me - but I want to see if it's only on my side.

I managed to bypass this issue by working on WSL ....

Comment options

The problem persist on:
Microsoft Windows 11 Pro (Version10.0.22631 Build 22631)
PHP 8.2.14 (cli) (built: Dec 20 2023 10:19:26) (NTS Visual C++ 2019 x64)
Composer version 2.4.1 2022-08-20 11:44:50

I get the same error when running:symfony new my_project_directory71 --version="7.1.*" --webapp:
image

You must be logged in to vote
1 reply
@christian-fries
Comment options

For us, the problem was SSL inspection on network level. You can adjust the configuration of thehttp_client to fix the problem. Two options:

  1. Provide the path to the custom certificate ascafile orcapath (recommended)
  2. Disableverify_host andverify_peer (not recommended)

You can usewhen@dev to only apply the configuration in dev context.

Comment options

I was able to solve this on my local windows / apache setup as follows :

Download the certificate from:https://curl.se/ca/cacert.pem
Save it locally, eg c:\certs\cacert.pem

In php.ini file, change or add the lines:

curl.cainfo = "c:\certs\cacert.pem"
and
openssl.cafile = "c:\certs\cacert.pem"

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
6 participants
@cosminsandu@stof@christian-fries@derrabus@musaffarpatel@simplegr
Converted from issue

This discussion was converted from issue #54144 on March 04, 2024 10:56.


[8]ページ先頭

©2009-2025 Movatter.jp