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 / npm ERR! 405 Method No...
Power Apps
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!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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-

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

    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

     

     

     

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

    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"

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard