web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PCF - npm run build - ...
Power Apps
Answered

PCF - npm run build - Error: self signed certificate in certificate chain

(0) ShareShare
ReportReport
Posted on by 41

Hello All,

Thanks for reading my post.

  • I'm following this tutorial to create a PCF control.
  • When I'm trying to do 'npm run build'. Its running successfully but an error is appearing 'Error: self signed certificate in certificate chain'.

Lab5-1.PNG

  • And, when I'm trying to run 'npm start' then following exception:

Lab5-2.PNG

Any troubleshooting suggestions? Thanks.

 

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @zohaibukhan , 

     

    It seems to be an issue with the pac 1.7.2. (I cannot reproduce it myself, but a lot of devs have it).

    Until a newer version of "pac cli" will be released, you could try to go back to an older version.

    pac use

    will list all the versions you have installed. If you have the 1.6.6 installed, switch to it_

    pac use 1.6.6

    If you have only the 1.7.2 installed, you could install  the 1.6.6 version by using:

    pac install 1.6.6

     

    For the "build" issue, if you still have it after downgrading the "pac version", maybe it helps to disable the telemetry

    pac telemetry disable

     

    Hope it helps!
    Diana

     

  • Zohaib Uddin Khan Profile Picture
    41 on at

    Thanks @DianaBirkelbach for the reply. Appreciated! 

    I followed the steps and switch to pac use 1.6.6 (as its installed on my machine). But, that exception is still haunting. 😓

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @zohaibukhan , 

     

    My bad. Downgrading tha pac cli would help only if you create the project again after that.

    For existing projects, try to downgrade

    npm install pcf-start@1.6.5

    After that, using "npm list" you shoudn't see an "uuid" 8.32 in the list anymore.

    Unfortunalety I cannot reproduce the issue, so I'm not very sure.

     

    When the bug will get fixed (with a new pac cli version) you will need to revert these changes by

    - pac use latest

    - npm install pcf-start@latest

     

    Hope it helps!

    Diana

     

     

  • Verified answer
    David Jenni Profile Picture
    Microsoft Employee on at

    @zohaibukhan you're seeing 2 issues:
    the second issue when running 'npm run start' (error: package subpath .v4 is not found) has a known mitigation by, for now, pinning pcf-start to 1.6.6 (as @DianaBirkelbach already correctly pointed out, thx!). We're working on a release with a hotfix to address that one).

     

    Your first issue (self-signed cert in chain): I couldn't reproduce that error either; my original error hypothesis was, your local env might have a fiddler self-signed cert in the cert store? But even with fiddler's https debug certs in my cert store, I couldn't reproduce.
    I'm filing a bug on our end to at least handle this failure to upload telemetry more gracefully. 

  • Verified answer
    Hemant Gaur Profile Picture
    Microsoft Employee on at

    This should be fixed with the latest update on the pac CLI which has the hotfix for this issue 

    >> pac install latest

    >> pac use latest

    1.7.3 (Latest)

     

    revert if you have made change to package.json for pcf-start 

        "pcf-start""^1"

     

    >> npm install pcf-start@latest

    Let me know if there are any questions. 

    Thanks,

    Hemant 

  • Zohaib Uddin Khan Profile Picture
    41 on at

    Thanks @DianaBirkelbach @DavidJen @HemantG for the reply.

    Earlier, I was trying to do the steps on the corporate machine which may have some policies which are hindering to finish them successfully.

    Later, I tried those steps on my personal machine with the sugggestions provided above by rock-stars and it went smoothly. Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard