Cli: Error: Failed getting list of addons: api.listServiceInstancesForSite is not a function

Created on 9 Nov 2020  ยท  4Comments  ยท  Source: netlify/cli

Running ntl addons:list or ntl dev immediately causes this error
_(single line in console, no other messages or errors)_:

Error: Failed getting list of addons: api.listServiceInstancesForSite is not a function

What I already tried: reinstall netlify-cli, ntl unlink โ†’ ntl logout โ†’ ntl login โ†’ ntl link โ€” site linked again, but error still present :frowning:

ntl status output:

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
 Current Netlify User โ”‚
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Email:  ****@*****.com
Github: *********
Teams: 
  space17's team: Collaborator 

ntl version output:

netlify-cli/2.68.0 win32-x64 node-v15.0.0

Few days before I posted this issue on netlify community, but nobody replies there.

bug

Most helpful comment

Hi @KazakovKirill, can you try installing via npm install -g netlify-cli?
Please run yarn global remove netlify-cli before installing via npm

All 4 comments

Hi @KazakovKirill, thank you for opening this issue.
I was able to run ntl addons:list without any issues on netlify-cli/2.68.0 darwin-x64 node-v15.0.1.
How are you installing the CLI? Globally? Locally? Via npm or yarn?

If installing globally, can you share the output of running:

npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli
npm ls -g netlify-cli
npm ls -g netlify
npm ls -g @netlify/open-api

@erezrokah Thank for quick reply!

I installed it globally using yarn.

npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli

 System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 6.30 GB / 15.85 GB
 Binaries:
    Node: 15.0.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 7.0.2 - C:\Program Files\nodejs\npm.CMD

npm ls -g netlify-cli

C:\Program Files\nodejs -> C:\Users\User\AppData\Roaming\nvm\v15.0.0
โ””โ”€โ”€ (empty)

npm ls -g netlify

C:\Program Files\nodejs -> C:\Users\User\AppData\Roaming\nvm\v15.0.0
โ””โ”€โ”€ (empty)

npm ls -g @netlify/open-api

C:\Program Files\nodejs -> C:\Users\User\AppData\Roaming\nvm\v15.0.0
โ””โ”€โ”€ (empty)

Same issue on Node versions 15.1.0 and 14.15.0

Hi @KazakovKirill, can you try installing via npm install -g netlify-cli?
Please run yarn global remove netlify-cli before installing via npm

Thank you, @erezrokah! Npm installation solved this weird issue!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bendg25 picture bendg25  ยท  5Comments

bcomnes picture bcomnes  ยท  3Comments

cco3 picture cco3  ยท  4Comments

jasikpark picture jasikpark  ยท  5Comments

janbaer picture janbaer  ยท  4Comments