Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

npm ERR! 405 Method Not Allowed - GET

(0) ShareShare
ReportReport
Posted on by

Dear Community,

 

I am trying to create my First PCF Control and I get the below error when I run 'npm install' command.
PS D:\PCF Learnings\LinearInput2> npm install
npm ERR! code E405
npm ERR! 405 Method Not Allowed - GET https://registry.npmjs.org/typescript/@types%2fnode
 
I tried to create from 'PCF Builder' plugin in XrmToolbox and facing the same error.

Has anyone faced this issue earlier? Please help me on this to address this issue.

 

Thank You!

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: npm ERR! 405 Method Not Allowed - GET

    Hi @Sandeep_97 , 

    maybe you have registry issues. 
    Using "npm config ls" you can have a look if there is something special...
    Maybe it helps to specify the registry, when you try to install "npm install  --registry=https://registry.npmjs.org"

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: npm ERR! 405 Method Not Allowed - GET

    Hi @Anonymous  ,

     

    Are you behind a proxy? If yes, you could set the Environment Variables
    HTTP_PROXY and HTTPS_PROXY with the https://<yourProxyAddress>:<Port>
    If that doesn't solve your issue, maybe this thread can help: https://stackoverflow.com/questions/23193614/npm-err-network-getaddrinfo-enotfound

     

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: npm ERR! 405 Method Not Allowed - GET

    I got some similar sort of error, while installing NPM

    errors are like below

     

    C:\Users\full>npm install @mermaid-js/mermaid-cli

    npm ERR! code ENOTFOUND

    npm ERR! syscall getaddrinfo

    npm ERR! errno ENOTFOUND

    npm ERR! network request to http://registry.npmjs.org/@mermaid-js%2fmermaid-cli failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org

    npm ERR! network This is a problem related to network connectivity.

    npm ERR! network In most cases you are behind a proxy or have bad network settings.

    npm ERR! network

    npm ERR! network If you are behind a proxy, please make sure that the

    npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

     

    npm ERR! A complete log of this run can be found in:

    npm ERR!     C:\Users\full\AppData\Local\npm-cache\_logs\2022-12-

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 63 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard