Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

issues with installing #19

Open
njcxqqy opened this issue Jan 20, 2021 · 4 comments
Open

issues with installing #19

njcxqqy opened this issue Jan 20, 2021 · 4 comments

Comments

@njcxqqy
Copy link

njcxqqy commented Jan 20, 2021

im new to nodejs

i keep on getting this line in my code

prebuild-install WARN install No prebuilt binaries found (target=14.15.4 runtime=node arch=x64 libc= platform=win32)

then followed by this

warning c4290 c++ exception specification ignored

is there anyway to fix ?
could it be the reason that i have do not have the system in English ?

thank you.

@atagulalan
Copy link
Owner

Try to match node version 10 or 12.

Make sure you have Microsoft Visual C++ Redistributables installed. You can install it here: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

I did not test any foreign languages, including my mother tongue, Turkish. But I highly doubt that language is the reason.

Thank you.

@njcxqqy
Copy link
Author

njcxqqy commented Jan 20, 2021

i have now try on v12 and v10

This is what im getting on v12
`C:\Users\username>node percentage

C:\Users\username>npm install

canvas@2.6.1 install C:\Users\username\node_modules\canvas
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using needle for node-pre-gyp https download
[canvas] Success: "C:\Users\username\node_modules\canvas\build\Release\canvas.node" is installed via remote
npm WARN arctis-battery-percentage@1.0.4 No repository field.

added 31 packages from 16 contributors and audited 95 packages in 29.779s

2 packages are looking for funding
run npm fund for details`

thank you.

@atagulalan
Copy link
Owner

The output is perfectly normal. npm install works.

Which headset model do you have?

It looks like program could not find it. You can check if it's seeing headset by running node list. If it halts, comment out these lines in list.js:

      device.write([0x06, 0x18])
      var report = device.readSync()
      console.log(deviceInfo, report)

And add console.log(deviceInfo) above that.

File should look like this:

#!/usr/bin/env node

const path = require('path')
var HID = require('node-hid')
HID.setDriverType('libusb')

var devices = HID.devices()

// Caution: This sends data to EVERY HID device connected.
// If you know the vendorId and productId of your device,
// please uncomment filter section.

devices
  //.filter(d => d.vendorId === VENDORID && d.productId === PRODUCTID && d.usage !== 1)
  .forEach((deviceInfo) => {
    try {
      var device = new HID.HID(deviceInfo.path)
      console.log(deviceInfo)
      //device.write([0x06, 0x18])
      //var report = device.readSync()
      //console.log(deviceInfo, report)
      device.close()
    } catch (error) {
      console.log('Not a steelseries wireless device.')
    }
  })

You can check SteelSeries devices connected to your PC.
Please share the output here.

Thank you.

@njcxqqy
Copy link
Author

njcxqqy commented Jan 26, 2021

arctis 9
{ vendorId: 4152, productId: 4802, path: '\\\\?\\hid#vid_1038&pid_12c2&mi_02#8&2be896cf&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}', manufacturer: 'SteelSeries', product: 'SteelSeries Arctis 9', release: 113, interface: 2, usagePage: 65280, usage: 1 } { vendorId: 4152, productId: 4802, path: '\\\\?\\hid#vid_1038&pid_12c2&mi_00#8&1533599f&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}', manufacturer: 'SteelSeries', product: 'SteelSeries Arctis 9', release: 113, interface: 0, usagePage: 65472, usage: 1 }
{ vendorId: 4152, productId: 4804, path: '\\\\?\\hid#vid_1038&pid_12c4&mi_05#8&75224b7&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}', serialNumber: '000000000000', manufacturer: 'SteelSeries', product: 'SteelSeries Arctis 9', release: 3, interface: 5, usagePage: 12, usage: 1 } { vendorId: 4152, productId: 4802, path: '\\\\?\\hid#vid_1038&pid_12c2&mi_01#8&390a9761&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}', manufacturer: 'SteelSeries', product: 'SteelSeries Arctis 9', release: 113, interface: 1, usagePage: 12, usage: 1 }

thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants