Open korbal opened 4 years ago
Just wanna let you know I'm gonna work on this when I find some time. Time has been pretty tight lately.
Cool, thanks! In the meantime, I tried it on a different laptop but still gave me the errors, so I think it must be the code base.
after npm install convertkit-cli -g using the ck command it returns undefined.
tried login with secret key and it returns undefined too
ck tags returns [object Object]
npm is 6.4 on win 10.
If i try to install it not globally, it throws
npm ERR! Unexpected token < in JSON at position 0 while parsing near '<script src="https:/...'
complete log is here:
0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'convertkit-cli' ] 2 info using npm@6.4.1 3 info using node@v10.14.1 4 verbose config Skipping project config: C:\Users\Bálint/.npmrc. (matches userconfig) 5 verbose npm-session 25d5832f360835df 6 silly install loadCurrentTree 7 silly install readLocalPackageData 8 http fetch GET 304 https://registry.npmjs.org/convertkit-cli 1098ms (from cache) 9 silly pacote tag manifest for convertkit-cli@latest fetched in 1138ms 10 timing stage:loadCurrentTree Completed in 1560ms 11 silly install loadIdealTree 12 silly install cloneCurrentTreeToIdealTree 13 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms 14 silly install loadShrinkwrap 15 timing stage:rollbackFailedOptional Completed in 1ms 16 timing stage:runTopLevelLifecycles Completed in 1567ms 17 silly saveTree Bálint 17 silly saveTree `-- xmlhttprequest@1.8.0 18 verbose stack SyntaxError: Unexpected token < in JSON at position 0 while parsing near '<script src="https:/...' 18 verbose stack at JSON.parse ()
18 verbose stack at parseJson (C:\Program Files\nodejs\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
18 verbose stack at module.exports (C:\Program Files\nodejs\node_modules\npm\lib\utils\parse-json.js:4:10)
18 verbose stack at parsePkgLock (C:\Program Files\nodejs\node_modules\npm\lib\install\read-shrinkwrap.js:68:12)
18 verbose stack at BB.join (C:\Program Files\nodejs\node_modules\npm\lib\install\read-shrinkwrap.js:28:22)
18 verbose stack at tryCatcher (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
18 verbose stack at Holder$3._callFunction (eval at generateHolderClass (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\join.js:92:16), :14:44)
18 verbose stack at Holder$3.checkFulfillment (eval at generateHolderClass (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\join.js:92:16), :29:30)
18 verbose stack at Promise.eval (eval at thenCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\join.js:14:16), :6:20)
18 verbose stack at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:566:21)
18 verbose stack at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
18 verbose stack at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
18 verbose stack at Promise._fulfill (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:638:18)
18 verbose stack at Promise._settlePromise (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:582:21)
18 verbose stack at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
18 verbose stack at Promise._settlePromises (C:\Program Files\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
19 verbose cwd C:\Users\Bálint
20 verbose Windows_NT 10.0.18362
21 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "convertkit-cli"
22 verbose node v10.14.1
23 verbose npm v6.4.1
24 error Unexpected token < in JSON at position 0 while parsing near '<script src="https:/...'
25 verbose exit [ 1, true ]