Open hhouchard opened 7 years ago
:wave: ,
We've seen this happen occasionally when an incorrect installation has happened. If this is still happening we've seen it be fixed by running:
npm uninstall -g canvas-data-cli && npm cache clean && npm install -g canvas-data-cli
In the terminal.
Hi Eric,
Here is what I get when I run that:
Last login: Mon Apr 10 09:45:06 on ttys000
Isabella-Houchards-iMac:~ isabellahouchard$ npm uninstall -g canvas-data-cli
-bash: npm: command not found
Isabella-Houchards-iMac:~ isabellahouchard$ npm cache clean
-bash: npm: command not found
Isabella-Houchards-iMac:~ isabellahouchard$ npm install -g canvas-data-cli
-bash: npm: command not found
Isabella-Houchards-iMac:~ isabellahouchard$ npm uninstall -g canvas-data-cli && npm cache clean && npm install -g canvas-data-cli
-bash: npm: command not found
Isabella-Houchards-iMac:~ isabellahouchard$
On Sun, Apr 9, 2017 at 5:11 PM, Eric notifications@github.com wrote:
👋 ,
We've seen this happen occasionally when an incorrect installation has happened. If this is still happening we've seen it be fixed by running:
npm uninstall -g canvas-data-cli && npm cache clean && npm install -g canvas-data-cli
In the terminal.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/instructure/canvas-data-cli/issues/12#issuecomment-292817280, or mute the thread https://github.com/notifications/unsubscribe-auth/AZEKvqVCntUtWCpXC_VsFPGXMjrp19Vhks5ruVeGgaJpZM4MXXXL .
-- Heather Houchard, MPH Mount Carmel College of Nursing 127 S Davis Ave • Columbus, OH 43222 614.234.3653 Office • 614.234.2875 Fax hhouchard@mccn.edu
Hey,
Do you still have node installed? NPM Comes with nodejs, and it looks like you had it at one point based on your initial issue:
Isabella-Houchards-iMac:~ isabellahouchard$ npm install -g canvas-data-cli
/usr/local/bin/canvasDataCli -> /usr/local/lib/node_modules/canvas-data-cli/bin/canvasDataCli
/usr/local/lib
└── canvas-data-cli@0.5.4
If you didn't uninstall node then it sounds like it didn't get added to your PATH. This should generally happen when you install node itself. Do you mind if I ask how you installed Node?
Hey Eric. I installed it first from the package installer on node.js. and then I think I also used some code from github. Canvas support asked me to uninstall both node and npm. Here is some (messy) output from how I tried to uninstall everything. I haven't tried to reinstall yet. Do you think I should go ahead and start over with the installation? Thanks. Heather
sabella-Houchards-iMac:~ isabellahouchard$ npm uninstall -g canvas-data-cli
ansi-regex@2.1.1 node_modules/canvas-data-cli/node_modules/ansi-regex
asn1@0.2.3 node_modules/canvas-data-cli/node_modules/asn1
assert-plus@0.2.0 node_modules/canvas-data-cli/node_modules/assert-plus
asynckit@0.4.0 node_modules/canvas-data-cli/node_modules/asynckit
aws-sign2@0.6.0 node_modules/canvas-data-cli/node_modules/aws-sign2
aws4@1.6.0 node_modules/canvas-data-cli/node_modules/aws4
balanced-match@0.4.2 node_modules/canvas-data-cli/n ode_modules/balanced-match
buffer-shims@1.0.0 node_modules/canvas-data-cli/n ode_modules/buffer-shims
camelcase@2.1.1 node_modules/canvas-data-cli/node_modules/camelcase
caseless@0.12.0 node_modules/canvas-data-cli/node_modules/caseless
co@4.6.0 node_modules/canvas-data-cli/node_modules/co
code-point-at@1.1.0 node_modules/canvas-data-cli/n ode_modules/code-point-at
concat-map@0.0.1 node_modules/canvas-data-cli/node_modules/concat-map
brace-expansion@1.1.6 node_modules/canvas-data-cli/n ode_modules/brace-expansion
core-util-is@1.0.2 node_modules/canvas-data-cli/n ode_modules/core-util-is
assert-plus@1.0.0 node_modules/canvas-data-cli/n ode_modules/dashdash/node_modules/assert-plus
dashdash@1.14.1 node_modules/canvas-data-cli/node_modules/dashdash
decamelize@1.2.0 node_modules/canvas-data-cli/node_modules/decamelize
delayed-stream@1.0.0 node_modules/canvas-data-cli/n ode_modules/delayed-stream
combined-stream@1.0.5 node_modules/canvas-data-cli/n ode_modules/combined-stream
extend@3.0.0 node_modules/canvas-data-cli/node_modules/extend
extsprintf@1.0.2 node_modules/canvas-data-cli/node_modules/extsprintf
forever-agent@0.6.1 node_modules/canvas-data-cli/n ode_modules/forever-agent
fs.realpath@1.0.0 node_modules/canvas-data-cli/node_modules/fs.realpath
assert-plus@1.0.0 node_modules/canvas-data-cli/n ode_modules/getpass/node_modules/assert-plus
getpass@0.1.6 node_modules/canvas-data-cli/node_modules/getpass
har-schema@1.0.5 node_modules/canvas-data-cli/node_modules/har-schema
hoek@2.16.3 node_modules/canvas-data-cli/node_modules/hoek
boom@2.10.1 node_modules/canvas-data-cli/node_modules/boom
cryptiles@2.0.5 node_modules/canvas-data-cli/node_modules/cryptiles
inherits@2.0.3 node_modules/canvas-data-cli/node_modules/inherits
invert-kv@1.0.0 node_modules/canvas-data-cli/node_modules/invert-kv
is-object@1.0.1 node_modules/canvas-data-cli/node_modules/is-object
is-typedarray@1.0.0 node_modules/canvas-data-cli/n ode_modules/is-typedarray
isarray@1.0.0 node_modules/canvas-data-cli/node_modules/isarray
isstream@0.1.2 node_modules/canvas-data-cli/node_modules/isstream
jsbn@0.1.1 node_modules/canvas-data-cli/node_modules/jsbn
ecc-jsbn@0.1.1 node_modules/canvas-data-cli/node_modules/ecc-jsbn
jodid25519@1.0.2 node_modules/canvas-data-cli/node_modules/jodid25519
json-schema@0.2.3 node_modules/canvas-data-cli/node_modules/json-schema
json-stringify-safe@5.0.1 node_modules/canvas-data-cli/n ode_modules/json-stringify-safe
jsonify@0.0.0 node_modules/canvas-data-cli/node_modules/jsonify
json-stable-stringify@1.0.1 node_modules/canvas-data-cli/n ode_modules/json-stable-stringify
ajv@4.11.4 node_modules/canvas-data-cli/node_modules/ajv
har-validator@4.2.1 node_modules/canvas-data-cli/n ode_modules/har-validator
lcid@1.0.0 node_modules/canvas-data-cli/node_modules/lcid
merge-descriptors@1.0.1 node_modules/canvas-data-cli/n ode_modules/merge-descriptors
fill-keys@1.0.2 node_modules/canvas-data-cli/node_modules/fill-keys
mime-db@1.26.0 node_modules/canvas-data-cli/node_modules/mime-db
mime-types@2.1.14 node_modules/canvas-data-cli/node_modules/mime-types
form-data@2.1.2 node_modules/canvas-data-cli/node_modules/form-data
minimatch@3.0.3 node_modules/canvas-data-cli/node_modules/minimatch
minimist@0.0.8 node_modules/canvas-data-cli/node_modules/minimist
module-not-found-error@1.0.1 node_modules/canvas-data-cli/n ode_modules/module-not-found-error
number-is-nan@1.0.1 node_modules/canvas-data-cli/n ode_modules/number-is-nan
is-fullwidth-code-point@1.0.0 node_modules/canvas-data-cli/n ode_modules/is-fullwidth-code-point
oauth-sign@0.8.2 node_modules/canvas-data-cli/node_modules/oauth-sign
os-locale@1.4.0 node_modules/canvas-data-cli/node_modules/os-locale
path-is-absolute@1.0.1 node_modules/canvas-data-cli/n ode_modules/path-is-absolute
performance-now@0.2.0 node_modules/canvas-data-cli/n ode_modules/performance-now
process-nextick-args@1.0.7 node_modules/canvas-data-cli/n ode_modules/process-nextick-args
punycode@1.4.1 node_modules/canvas-data-cli/node_modules/punycode
qs@6.3.2 node_modules/canvas-data-cli/node_modules/qs
resolve@1.1.7 node_modules/canvas-data-cli/node_modules/resolve
sntp@1.0.9 node_modules/canvas-data-cli/node_modules/sntp
hawk@3.1.3 node_modules/canvas-data-cli/node_modules/hawk
assert-plus@1.0.0 node_modules/canvas-data-cli/n ode_modules/sshpk/node_modules/assert-plus
string_decoder@0.10.31 node_modules/canvas-data-cli/n ode_modules/string_decoder
stringstream@0.0.5 node_modules/canvas-data-cli/n ode_modules/stringstream
strip-ansi@3.0.1 node_modules/canvas-data-cli/node_modules/strip-ansi
string-width@1.0.2 node_modules/canvas-data-cli/n ode_modules/string-width
through@2.3.8 node_modules/canvas-data-cli/node_modules/through
tough-cookie@2.3.2 node_modules/canvas-data-cli/n ode_modules/tough-cookie
tunnel-agent@0.4.3 node_modules/canvas-data-cli/n ode_modules/tunnel-agent
tweetnacl@0.14.5 node_modules/canvas-data-cli/node_modules/tweetnacl
bcrypt-pbkdf@1.0.1 node_modules/canvas-data-cli/n ode_modules/bcrypt-pbkdf
sshpk@1.11.0 node_modules/canvas-data-cli/node_modules/sshpk
util-deprecate@1.0.2 node_modules/canvas-data-cli/n ode_modules/util-deprecate
readable-stream@2.2.3 node_modules/canvas-data-cli/n ode_modules/readable-stream
uuid@3.0.1 node_modules/canvas-data-cli/node_modules/uuid
verror@1.3.6 node_modules/canvas-data-cli/node_modules/verror
jsprim@1.3.1 node_modules/canvas-data-cli/node_modules/jsprim
http-signature@1.1.1 node_modules/canvas-data-cli/n ode_modules/http-signature
window-size@0.1.4 node_modules/canvas-data-cli/node_modules/window-size
wrap-ansi@2.1.0 node_modules/canvas-data-cli/node_modules/wrap-ansi
cliui@3.2.0 node_modules/canvas-data-cli/node_modules/cliui
wrappy@1.0.2 node_modules/canvas-data-cli/node_modules/wrappy
once@1.3.3 node_modules/canvas-data-cli/node_modules/end-of-stream/node _modules/once
end-of-stream@1.1.0 node_modules/canvas-data-cli/n ode_modules/end-of-stream
once@1.4.0 node_modules/canvas-data-cli/node_modules/once
inflight@1.0.6 node_modules/canvas-data-cli/node_modules/inflight
y18n@3.2.1 node_modules/canvas-data-cli/node_modules/y18n
async@1.5.2 node_modules/canvas-data-cli/node_modules/async
glob@7.1.1 node_modules/canvas-data-cli/node_modules/glob
lodash@3.10.1 node_modules/canvas-data-cli/node_modules/lodash
map-stream@0.0.6 node_modules/canvas-data-cli/node_modules/map-stream
mkdirp@0.5.1 node_modules/canvas-data-cli/node_modules/mkdirp
multistream@2.1.0 node_modules/canvas-data-cli/node_modules/multistream
proxyquire@1.7.11 node_modules/canvas-data-cli/node_modules/proxyquire
pump@1.0.2 node_modules/canvas-data-cli/node_modules/pump
re@0.1.4 node_modules/canvas-data-cli/node_modules/re
request@2.80.0 node_modules/canvas-data-cli/node_modules/request
split@1.0.0 node_modules/canvas-data-cli/node_modules/split
yargs@3.32.0 node_modules/canvas-data-cli/node_modules/yargs
canvas-data-cli@0.5.4 node_modules/canvas-data-cli
Isabella-Houchards-iMac:~ isabellahouchard$ brew uninstall node
Error: No such keg: /usr/local/Cellar/node
Isabella-Houchards-iMac:~ isabellahouchard$ nvm uninstall v6.10.0
-bash: nvm: command not found
Isabella-Houchards-iMac:~ isabellahouchard$ nvm uninstall v3.10.10
-bash: nvm: command not found
Isabella-Houchards-iMac:~ isabellahouchard$ which node
/usr/local/bin/node
Isabella-Houchards-iMac:~ isabellahouchard$ node --version
v6.10.0
Isabella-Houchards-iMac:~ isabellahouchard$ cd /usr/local/lib
Isabella-Houchards-iMac:lib isabellahouchard$ list
-bash: list: command not found
Isabella-Houchards-iMac:lib isabellahouchard$ ls
dtrace node_modules
Isabella-Houchards-iMac:lib isabellahouchard$ node_modules
-bash: node_modules: command not found
Isabella-Houchards-iMac:lib isabellahouchard$ ls node_modules
npm
Isabella-Houchards-iMac:lib isabellahouchard$ cd /usr/local/lib/node_modules
Isabella-Houchards-iMac:node_modules isabellahouchard$ ce usr/local/lib/node_modules sudo rm -r ./node_modules
-bash: ce: command not found
Isabella-Houchards-iMac:node_modules isabellahouchard$ /usr/local/lib/node_modules
-bash: /usr/local/lib/node_modules: is a directory
Isabella-Houchards-iMac:node_modules isabellahouchard$ /usr/local/lib/node_module
-bash: /usr/local/lib/node_module: No such file or directory
Isabella-Houchards-iMac:node_modules isabellahouchard$ /usr/local/lib
-bash: /usr/local/lib: is a directory
Isabella-Houchards-iMac:node_modules isabellahouchard$ cd /usr/local/lib/node_modules
Isabella-Houchards-iMac:node_modules isabellahouchard$ sudo rm -r node_modules
Password:
Sorry, try again.
Password:
rm: node_modules: No such file or directory
Isabella-Houchards-iMac:node_modules isabellahouchard$ ls
npm
Isabella-Houchards-iMac:node_modules isabellahouchard$ sudo rm ./npm
rm: ./npm: is a directory
Isabella-Houchards-iMac:node_modules isabellahouchard$ npm
Usage: npm
where
is one of: access, adduser, bin, bugs, c, cache, completion, config, ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get, help, help-search, i, init, install, install-test, it, link, list, ln, login, logout, ls, outdated, owner, pack, ping, prefix, prune, publish, rb, rebuild, repo, restart, root, run, run-script, s, se, search, set, shrinkwrap, star, stars, start, stop, t, tag, team, test, tst, un, uninstall, unpublish, unstar, up, update, v, version, view, whoami
npm
-h quick help on npm -l display full usage info
npm help
search for help on npm help npm involved overview
Specify configs in the ini-formatted file:
/Users/isabellahouchard/.npmrc
or on the command line via: npm
--key value Config info can be viewed via: npm help config
npm@3.10.10 /usr/local/lib/node_modules/npm
Isabella-Houchards-iMac:node_modules isabellahouchard$ ls
npm
Isabella-Houchards-iMac:node_modules isabellahouchard$ npm uninstall
npm ERR! npm uninstall [@scope>/]<pkg>[@<version]... [--save|--save-dev|--save-optional]
npm ERR!
npm ERR! aliases: un, unlink, remove, rm, r
Isabella-Houchards-iMac:node_modules isabellahouchard$ npm
Usage: npm
where
is one of: access, adduser, bin, bugs, c, cache, completion, config, ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get, help, help-search, i, init, install, install-test, it, link, list, ln, login, logout, ls, outdated, owner, pack, ping, prefix, prune, publish, rb, rebuild, repo, restart, root, run, run-script, s, se, search, set, shrinkwrap, star, stars, start, stop, t, tag, team, test, tst, un, uninstall, unpublish, unstar, up, update, v, version, view, whoami
npm
-h quick help on npm -l display full usage info
npm help
search for help on npm help npm involved overview
Specify configs in the ini-formatted file:
/Users/isabellahouchard/.npmrc
or on the command line via: npm
--key value Config info can be viewed via: npm help config
npm@3.10.10 /usr/local/lib/node_modules/npm
Isabella-Houchards-iMac:node_modules isabellahouchard$ cd /usr/
Isabella-Houchards-iMac:usr isabellahouchard$ cd /usr/local/lib
Isabella-Houchards-iMac:lib isabellahouchard$ ls
dtrace node_modules
Isabella-Houchards-iMac:lib isabellahouchard$ rm -rf node_modules
Isabella-Houchards-iMac:lib isabellahouchard$ node_modules
-bash: node_modules: command not found
Isabella-Houchards-iMac:lib isabellahouchard$ cd /usr/local/include
Isabella-Houchards-iMac:include isabellahouchard$ ls
node
Isabella-Houchards-iMac:include isabellahouchard$ rm -rf node
Isabella-Houchards-iMac:include isabellahouchard$ ls
Isabella-Houchards-iMac:include isabellahouchard$ cd /usr/local/include
Isabella-Houchards-iMac:include isabellahouchard$ ls
Isabella-Houchards-iMac:include isabellahouchard$ cd /usr/local/bin
Isabella-Houchards-iMac:bin isabellahouchard$ ls
brew node npm scan
Isabella-Houchards-iMac:bin isabellahouchard$ rm -rf node
Isabella-Houchards-iMac:bin isabellahouchard$ rm -rf npm
Isabella-Houchards-iMac:bin isabellahouchard$ ls
brew scan
Isabella-Houchards-iMac:bin isabellahouchard$ cd /usr/
Isabella-Houchards-iMac:usr isabellahouchard$ ls
bin lib local share
include libexec sbin standalone
Isabella-Houchards-iMac:usr isabellahouchard$ lib
-bash: lib: command not found
Isabella-Houchards-iMac:usr isabellahouchard$ cd /usr/lib
Isabella-Houchards-iMac:lib isabellahouchard$ ls
PN548_API.dylib libipsec.A.dylib
PN548_HAL_OSX.dylib libipsec.dylib
PN548_OSX.dylib libk5crypto.dylib
bundle1.o libkmod.a
charset.alias libkmodc++.a
cron libkrb4.dylib
crt1.10.5.o libkrb5.dylib
crt1.10.6.o libkrb524.dylib
crt1.o libkrb5support.dylib
dtrace libktrace.dylib
dyld libl.a
dylib1.10.5.o liblangid.dylib
dylib1.o liblapack.dylib
gcrt1.o liblber.dylib
groff libldap.dylib
lazydylib1.o libldap_r.dylib
libATCommandStudio.a liblzma.5.dylib
libATCommandStudioDynamic.dylib liblzma.dylib
libAccountPolicyTranslation.dylib libm.dylib
libBSDPClient.A.dylib libmarisa.dylib
libBSDPClient.dylib libmecab.1.0.0.dylib
libCRFSuite.dylib libmecab.dylib
libCRFSuite0.12.dylib libmecabra.dylib
libChineseTokenizer.dylib libmenu.5.4.dylib
libCoreStorage.dylib libmenu.dylib
libDHCPServer.A.dylib libmx.A.dylib
libDHCPServer.dylib libmx.dylib
libDiagnosticMessagesClient.dylib libncurses.5.4.dylib
libFDR_osx.dylib libncurses.5.dylib
libFosl_dynamic.dylib libncurses.dylib
libIASAuthReboot.dylib libnetsnmp.15.1.2.dylib
libIASUnifiedProgress.dylib libnetsnmp.15.dylib
libMatch.1.dylib libnetsnmp.25.dylib
libMatch.dylib libnetsnmp.5.2.1.dylib
libOpenScriptingUtil.dylib libnetsnmp.5.dylib
libQMIParser.a libnetsnmp.dylib
libQMIParserDynamic.dylib libnetsnmpagent.25.dylib
libSMC.dylib libnetsnmpagent.dylib
libScreenReader.dylib libnetsnmphelpers.25.dylib
libSystem.B.dylib libnetsnmphelpers.dylib
libSystem.dylib libnetsnmpmibs.25.dylib
libTelephonyUtilDynamic.dylib libnetsnmpmibs.dylib
libThaiTokenizer.dylib libnetsnmptrapd.25.dylib
libUniversalAccess.dylib libnetsnmptrapd.dylib
libXSEvent.dylib libnetwork.dylib
libXplugin.1.dylib libnfrestore.dylib
libXplugin.dylib libnfshared.dylib
libalias.A.dylib libobjc.A.dylib
On Mon, Apr 10, 2017 at 9:55 AM, Eric notifications@github.com wrote:
Hey,
Do you still have node installed? NPM Comes with nodejs, and it looks like you had it at one point based on your initial issue:
Isabella-Houchards-iMac:~ isabellahouchard$ npm install -g canvas-data-cli /usr/local/bin/canvasDataCli -> /usr/local/lib/node_modules/canvas-data-cli/bin/canvasDataCli /usr/local/lib └── canvas-data-cli@0.5.4
If you didn't uninstall node then it sounds like it didn't get added to your PATH. This should generally happen when you install node itself. Do you mind if I ask how you installed Node?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/instructure/canvas-data-cli/issues/12#issuecomment-292974799, or mute the thread https://github.com/notifications/unsubscribe-auth/AZEKvkk9zLAdQEGFNT1QkKRA1itSO-S9ks5rukL7gaJpZM4MXXXL .
-- Heather Houchard, MPH Mount Carmel College of Nursing 127 S Davis Ave • Columbus, OH 43222 614.234.3653 Office • 614.234.2875 Fax hhouchard@mccn.edu
Hey,
So the canvas support agent you were talking to was me. Small world. If you can execute npm
right now, and get some output then I'd say don't worry about uninstall/reinstalling node.
If you can't I'd do two things (since it looks like you have brew.)
brew doctor
in order to clean up anything that it can detect.brew install node
in order to clean things up/add node to your path.After that close your terminal and open it again. You may need to reinstall the CLI Globally (npm install -g canvas-data-cli
), but it should be good.
Lol. Ok, I'll give it a shot.
Heather
On Apr 10, 2017, at 11:20 AM, Eric notifications@github.com wrote:
Hey,
So the canvas support agent you were talking to was me. Small world. If you can execute npm right now, and get some output then I'd say don't worry about uninstall/reinstalling node.
If you can't I'd do two things (since it looks like you have brew.)
run brew doctor in order to clean up anything that it can detect. run brew install node in order to clean things up/add node to your path. After that close your terminal and open it again. You may need to reinstall the CLI Globally (npm install -g canvas-data-cli), but it should be good.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I didn't know Eric and Notifier of All Things are synonymous. Now I do.
On Apr 10, 2017, at 11:20 AM, Eric notifications@github.com wrote:
Hey,
So the canvas support agent you were talking to was me. Small world. If you can execute npm right now, and get some output then I'd say don't worry about uninstall/reinstalling node.
If you can't I'd do two things (since it looks like you have brew.)
run brew doctor in order to clean up anything that it can detect. run brew install node in order to clean things up/add node to your path. After that close your terminal and open it again. You may need to reinstall the CLI Globally (npm install -g canvas-data-cli), but it should be good.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Heh, I think I'm the only one who still uses that account (though we have multiple people using the queue) as a reply email. Everyone else has had their accounts associated to the correct email.
That worked! Thanks
On Mon, Apr 10, 2017 at 11:20 AM, Eric notifications@github.com wrote:
Hey,
So the canvas support agent you were talking to was me. Small world. If you can execute npm right now, and get some output then I'd say don't worry about uninstall/reinstalling node.
If you can't I'd do two things (since it looks like you have brew.)
- run brew doctor in order to clean up anything that it can detect.
- run brew install node in order to clean things up/add node to your path.
After that close your terminal and open it again. You may need to reinstall the CLI Globally (npm install -g canvas-data-cli), but it should be good.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/instructure/canvas-data-cli/issues/12#issuecomment-293001306, or mute the thread https://github.com/notifications/unsubscribe-auth/AZEKvuN7hpdH0JFSlZOBHySuD819DPbjks5rulbjgaJpZM4MXXXL .
-- Heather Houchard, MPH Mount Carmel College of Nursing 127 S Davis Ave • Columbus, OH 43222 614.234.3653 Office • 614.234.2875 Fax hhouchard@mccn.edu
Awesome, glad to hear!
Hi Eric,
Can you tell me where I am going wrong here? Thanks. Heather
Isabella-Houchards-iMac:desktop isabellahouchard$ canvasDataCli fetch -c /users/isabellahouchard/Desktop/config.js -t user_dim
/users/isabellahouchard/Desktop/config.js:3
saveLocation: ‘/users/isabellahouchard/Desktop/CDatafiles/data’,
^
SyntaxError: Invalid or unexpected token
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.run
(/usr/local/lib/node_modules/canvas-data-cli/lib/cli.js:113:16
On Mon, Apr 10, 2017 at 5:25 PM, Eric notifications@github.com wrote:
Awesome, glad to hear!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/instructure/canvas-data-cli/issues/12#issuecomment-293096776, or mute the thread https://github.com/notifications/unsubscribe-auth/AZEKvvrIicqqD8ak9C1hFL-3OrpKyziCks5ruqxWgaJpZM4MXXXL .
-- Heather Houchard, MPH Mount Carmel College of Nursing 127 S Davis Ave • Columbus, OH 43222 614.234.3653 Office • 614.234.2875 Fax hhouchard@mccn.edu
@hhouchard it appears you have a syntax error in your configuration. Do you mind posting it here, and I'd be happy to shine light as to what it is.
Oh, you are awewome.
Here it is:
module.exports = { saveLocation: ‘/users/isabellahouchard/Desktop/CDatafiles/data’, unpackLocation: ‘/users/isabella/houchard/Desktop/CDatafiles/unpackedFiles’, apiUrl: 'https://api.inshosteddata.com/api', key: ‘’0038527fdab78df691e3ce793e2b1064c054d814’’, secret: ‘’57ea2c7a306c63178b4fbe63f6b13a88f5af202f’’, }
On Sun, Apr 23, 2017 at 3:27 PM, Eric notifications@github.com wrote:
@hhouchard https://github.com/hhouchard it appears you have a syntax error in your configuration. Do you mind posting it here, and I'd be happy to shine light as to what it is.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/instructure/canvas-data-cli/issues/12#issuecomment-296486264, or mute the thread https://github.com/notifications/unsubscribe-auth/AZEKvp9uXonpe14Bvl146bhbhKmb4JVsks5ry7RNgaJpZM4MXXXL .
-- Heather Houchard, MPH Mount Carmel College of Nursing 127 S Davis Ave • Columbus, OH 43222 614.234.3653 Office • 614.234.2875 Fax hhouchard@mccn.edu
@hhouchard I'd rotate those credentials right away. (this can be done in the portal by regenerating credentials). Anyone with those would have complete access to your schools data. I should've mentioned that in my first comment. We will never need it from a support perspective.
Second off it appears you're mac is performing what's known as "smart quotes". (You'll notice the quotes appear curly e.g.:
Normal quote: ' Smart quote: ‘ Normal quote: " Smart Quote: ‘’ ).
There's a guide to turn it off globally HERE if you want to never deal with it again. If not you can copy the normal quote from my response here.
Will do both. Thank you, again.
On Sun, Apr 23, 2017 at 3:33 PM, Eric notifications@github.com wrote:
@hhouchard https://github.com/hhouchard I'd rotate those credentials right away. (this can be done in the portal by regenerating credentials). Anyone with those would have complete access to your schools data. I should've mentioned that in my first comment. We will never need it from a support perspective.
Second off it appears you're mac is performing what's known as "smart quotes". (You'll notice the quotes appear curly e.g.:
Normal quote: ' Smart quote: ‘ Normal quote: " Smart Quote: ‘’ ).
There's a guide to turn it off globally HERE http://www.iclarified.com/38772/how-to-disable-curly-quotes-in-mac-os-x-mavericks if you want to never deal with it again. If not you can copy the normal quote from my response here.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/instructure/canvas-data-cli/issues/12#issuecomment-296486572, or mute the thread https://github.com/notifications/unsubscribe-auth/AZEKvqahhdEI2MUpOFs0j1li509TeXC9ks5ry7V9gaJpZM4MXXXL .
-- Heather Houchard, MPH Mount Carmel College of Nursing 127 S Davis Ave • Columbus, OH 43222 614.234.3653 Office • 614.234.2875 Fax hhouchard@mccn.edu
@SecurityInsanity Any idea what could be leading to the connection problems reported in issue #15?
Please help me understand why I am getting the following when I try to get the sample configuration. Thanks.
Isabella-Houchards-iMac:~ isabellahouchard$ npm install -g canvas-data-cli /usr/local/bin/canvasDataCli -> /usr/local/lib/node_modules/canvas-data-cli/bin/canvasDataCli /usr/local/lib └── canvas-data-cli@0.5.4
Isabella-Houchards-iMac:~ isabellahouchard$ canvasDataCli sampleConfig module.js:471 throw err; ^
Error: Cannot find module './lib/Api' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/usr/local/lib/node_modules/canvas-data-cli/index.js:2:8)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Isabella-Houchards-iMac:~ isabellahouchard$