# Installing InfluxDB Node.js FAILS

**URL:** <https://community.influxdata.com/t/installing-influxdb-node-js-fails/28567>\
**Category:** Welcome & Getting Started\
**Tags:** influxdb, grafana, installation\
**Created:** [February 13, 2023, 10:21am UTC](https://community.influxdata.com/t/installing-influxdb-node-js-fails/28567 "2023-02-13T10:21:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piyush\_Kapoor](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/piyush_kapoor/32/12639_2.png) [@Piyush\_Kapoor](https://community.influxdata.com/u/Piyush_Kapoor)\
**Post date:** [February 13, 2023, 10:21am UTC](https://community.influxdata.com/t/installing-influxdb-node-js-fails/28567/1 "2023-02-13T10:21:43Z")

</div>

Hello,

I am fairly new to InfluxDB and I am trying to integrate Influx DB and Node JS server, So I can send datapoints from Node server to Influx DB and can monitor the traffic coming onto the server (via grafana etc).

Now, as I am trying this for the 1st time, I am stuck and not able to move forward with my setup.

Could anyone kindly assist / guide me to sort out my issue.

I have followed → docs influxdata com / influxdb / v2.6 / api-guide / client-libraries / nodejs

All the commands works in the above link, but the first one. Below screenshot for reference:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/e/e567587f6b8ac362b0730be46ba07d0d392fd65b.png)

As per logs - I get “E404 Not Found - GET [https://registry.npmjs.org/create-influx-node-app](https://registry.npmjs.org/create-influx-node-app) - Not found”.

Post which I am supposed to be running the data query on my InfluxDB (already created bucket NodeJS). for which I have followed the same link as above under Write.

But I get below error (which I am presuming is caused by E404, got in the installation step).

import { InfluxDB, Point } from ‘[@influxdata](https://community.influxdata.com/groups/influxdata)/influxdb-client’  
^^^^^^

SyntaxError: Cannot use import statement outside a module

Request your assistance in sorting out the issue.

Regards,  
Piyush

---

<div class="post-metadata">

**Author:** ![cliver](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cliver](https://community.influxdata.com/u/cliver)\
**Post date:** [March 16, 2023, 8:55pm UTC](https://community.influxdata.com/t/installing-influxdb-node-js-fails/28567/2 "2023-03-16T20:55:53Z")

</div>

Hi, I’m getting exactly the same problem. Did you find a fix?
