Nodejs-dialogflow: Version 2 not available on npmjs

Created on 13 Mar 2020  路  5Comments  路  Source: googleapis/nodejs-dialogflow

Environment details

  • OS: Ubuntu 18
  • Node.js version: 10.18.1
  • npm version: 6.13
  • @google-cloud/dialogflow version: 1.2

Steps to reproduce

Version 2 isn't available on npm. Doing npm i @google-cloud/dialogflow fails with the error given below while npm i dialogflow installs v1.2 which doesn't support typescript.

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@google-cloud%2fdialogflow - Not found
npm ERR! 404 
npm ERR! 404  '@google-cloud/dialogflow@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Thanks!

question dialogflow

Most helpful comment

You can still use the v2 by using this command (require git):
npm install --save github:googleapis/nodejs-dialogflow

I use this because i need typescript types ^^

All 5 comments

we are currently blocked awaiting dropping of Node 8 support, this process should begin later this week.

we are currently blocked awaiting dropping of Node 8 support, this process should begin later this week.

HI @bcoe, any news about the date?

You can still use the v2 by using this command (require git):
npm install --save github:googleapis/nodejs-dialogflow

I use this because i need typescript types ^^

From the note in README.md, I thought @google-cloud/dialogflow was already on npmjs and tried to install it too.

In my case, I had to explicitly specify the brance name in order to install v2:
npm install github:googleapis/nodejs-dialogflow#release-v2.0.0

@weeix @JockeRider199 @yusufkhan07 馃憢 2.x.x is now available on npm:

npm i @google-cloud/dialogflow

Note that you will require Node 10 or greater to run this 馃憤

Was this page helpful?
0 / 5 - 0 ratings