node-ld icon indicating copy to clipboard operation
node-ld copied to clipboard

Cannot find module './dist/node'

Open matthewbullweb opened this issue 7 years ago • 4 comments

Revisited this project after a while and noticed:

  • a number of warnings that packages have changed there names e.g 'jade' to 'plug' when using npm install node-ld. (including trying to install node-hid and usb models - raspberry p)
  • an error when attempting to run the toypadDemo.js sample "Cannot find module './dist/node'" (both windows and linux)

I recall toypadDemo.js runs a flashing light sequence on the real toypad. My aim is to run that and eventually re-purpose the pad and tag read events into a game for a local fair.

Never worked for me on a raspberry pi Linux system (due to complications installing libusb and node-hid with usb modules)

Used to work on Windows but now does not. Have included that log file below.

Windows - 2017-11-12T16_15_10_688Z-debug.log

matthewbullweb avatar Nov 12 '17 16:11 matthewbullweb

Now got this to work on Windows.

My older version of node-ld is from 13 ‎November ‎2016 as has a dis folder. I simply copied this older to the latest node and the rights now flash.

There is also the extra step of running nmp install node-hid for fresh installs.

matthewbullweb avatar Nov 12 '17 17:11 matthewbullweb

@matthewbullweb any chance I can get the "dist/node" folder? thanks in advance :)

javipolo avatar Apr 08 '18 21:04 javipolo

Not sure where the jade to pug warning is coming from, jade isn't a dependency of node-ld. The dist folder should be generated by running gulp if using the github sources, the npm package already has that ran. As for needing to run npm install node-hid, its already a dependency of this project, so should auto-install.

AlinaNova21 avatar Apr 09 '18 13:04 AlinaNova21

Up and running with gulp!!! Thanks so much @ags131

javipolo avatar Apr 09 '18 16:04 javipolo