0

I am currently working on a coding project, and would like to test them on my RaspPi. All of the code works when I run it on travis-ci. However, when I run it on RaspPi nothing happens. Here is a simplified version:

~$ npm install jsdoc
# bunch of stats that all report success
~$ jsdoc --help
~$ jsdoc --help

As you can see, jsdoc is outputting nothing, as if it never installed. But the following shows it is installed:

~$ jsdoc
bash: jsdoc: command not found
~$ npm install jsdoc
~$ jsdoc --help
~$ jsdoc --help

For the full repo, look here: https://github.com/FreezePhoenix/XtraUtils/tree/JavaScript

FreezePhoenix
  • 135
  • 1
  • 12

1 Answers1

2

My original thought that it was a global/local installation issue was incorrect. The issue is probably caused by using the nodejs package from the repositories instead of directly from Node. On Jessie, nodejs v0.10.29 is provided, and on Stretch, v4.8.2. Version 0.10 is from 2013, which is, in Node terms, ancient.

JSDoc isn't compatible with 0.10.29 (the Jessie version), but it is compatible with 4.8.2:

JSDoc supports Node.js 4.2.0 and later. You can install JSDoc globally or in your project's node_modules folder.

You can either:

Aurora0001
  • 6,308
  • 3
  • 23
  • 38