canvas-data-cli icon indicating copy to clipboard operation
canvas-data-cli copied to clipboard

Not Working in Ubuntu

Open KevinWFinMin opened this issue 8 years ago • 2 comments

When I try to install the Canvas-Data-Cli it tells me this:

npm WARN [email protected] requires a peer of chai@>= 1.6.1 < 2 but none is installed. You must install peer dependencies yourself.

Then if I try to run it from the command line I get this:

canvasDataCli module.js:538 throw err; ^

Error: Cannot find module './lib/Api' at Function.Module._resolveFilename (module.js:536:15) at Function.Module._load (module.js:466:25) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object. (/usr/local/lib/node_modules/canvas-data-cli/index.js:2:8) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3)

Can anyone tell me what's going on? I have it working fine on Windows 10.

KevinWFinMin avatar Nov 07 '17 21:11 KevinWFinMin

Even after installing the proper version of Chai I'm still getting the same error.

$ npm install -g [email protected] + [email protected] removed 3 packages and updated 1 package in 0.366s $ npm install -g canvas-data-cli /usr/bin/canvasDataCli -> /usr/lib/node_modules/canvas-data-cli/bin/canvasDataCli npm WARN [email protected] requires a peer of chai@>= 1.6.1 < 2 but none is installed. You must install peer dependencies yourself.

KevinWFinMin avatar Nov 08 '17 17:11 KevinWFinMin

If you install the version recommended in the documentation:

npm install -g [email protected]

You shouldn't get the error you received above. However, you my get the same error that I encountered and submitted in issue #15

wbuchanan avatar Sep 11 '18 08:09 wbuchanan