Paperspace / paperspace-node

Paperspace API for node.js
https://www.paperspace.com/core
ISC License
75 stars 15 forks source link

paperspace command not found on npm install #16

Open heaversm opened 5 years ago

heaversm commented 5 years ago

Hi - I'm leading a course on machine learning and have successfully installed paperspace on my own machine, but I need to test student access on the school's laptops, and cannot get the cli working. Due to security restraints, I can only do an npm install paperspace-node (no global, no pip, and the binary just downloads as a text document that I cannot execute).

But after successful npm init, npm install, if I attempt to run paperspace ... anything, I get command not found paperspace. Would this be a security constraint? Or a difference between a global install and a local that means I need to do something different to invoke the CLI?

screen shot 2018-10-28 at 1 08 30 pm screen shot 2018-10-28 at 1 16 05 pm screen shot 2018-10-28 at 1 17 20 pm
dte commented 5 years ago

Hi @heaversm when you do an npm install -g paperspace-node it adds it to your path. This means you can use the paperspace command everywhere. You can also install with a regular npm install paperspace-node but then you need to make sure you add the install location to your PATH.

There are lots of way to add to your PATH, but usually a export PATH=$PATH:~/location/to/the/npm/binary will work. Here is a link http://osxdaily.com/2014/08/14/add-new-path-to-path-command-line/