{"action":"opened","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/5045","repository_url":"https://api.github.com/repos/NativeScript/nativescript-cli","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/5045/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/5045/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/5045/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/5045","id":502167440,"node_id":"MDU6SXNzdWU1MDIxNjc0NDA=","number":5045,"title":"Unable to Update CLI","user":{"login":"joeytitans","id":37939256,"node_id":"MDQ6VXNlcjM3OTM5MjU2","avatar_url":"https://avatars1.githubusercontent.com/u/37939256?v=4","gravatar_id":"","url":"https://api.github.com/users/joeytitans","html_url":"https://github.com/joeytitans","followers_url":"https://api.github.com/users/joeytitans/followers","following_url":"https://api.github.com/users/joeytitans/following{/other_user}","gists_url":"https://api.github.com/users/joeytitans/gists{/gist_id}","starred_url":"https://api.github.com/users/joeytitans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeytitans/subscriptions","organizations_url":"https://api.github.com/users/joeytitans/orgs","repos_url":"https://api.github.com/users/joeytitans/repos","events_url":"https://api.github.com/users/joeytitans/events{/privacy}","received_events_url":"https://api.github.com/users/joeytitans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-03T16:24:37Z","updated_at":"2019-10-03T16:24:37Z","closed_at":null,"author_association":"NONE","body":"**Environment**\r\n - CLI: 5.1.0\r\n - OS: macOS Mojave version 10.14.4\r\n\r\n**Describe the bug**\r\nI am attempting to update the CLI to 6.1.2 however am having some issues during the upgrade process.  I follow the upgrade instructions in the documentation by running 'npm install -g nativescript' which then prints out the following:\r\n\r\n```\r\n> nativescript@5.1.1 preuninstall /Users/myuser/.npm-global/lib/node_modules/nativescript\r\n> node preuninstall.js\r\n\r\n/Users/myuser/.npm-global/bin/nativescript -> /Users/myuser/.npm-global/lib/node_modules/nativescript/bin/tns\r\n/Users/myuser/.npm-global/bin/tns -> /Users/myuser/.npm-global/lib/node_modules/nativescript/bin/tns\r\n\r\n> fsevents@1.2.9 install /Users/myuser/.npm-global/lib/node_modules/nativescript/node_modules/fsevents\r\n> node install\r\n\r\nnode-pre-gyp WARN Using request for node-pre-gyp https download \r\n[fsevents] Success: \"/Users/myuser/.npm-global/lib/node_modules/nativescript/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node\" is installed via remote\r\n\r\n> nativescript@6.1.2 postinstall /Users/myuser/.npm-global/lib/node_modules/nativescript\r\n> node postinstall.js\r\n\r\nAutocompletion is already enabled\r\n\r\nYou have successfully installed the NativeScript CLI!\r\n\r\nYour next step is to create a new project:\r\ntns create\r\n\r\nNew to NativeScript? Try the tutorials in NativeScript Playground: https://play.nativescript.org\r\n\r\n\r\nIf you have any questions, check Stack Overflow: https://stackoverflow.com/questions/tagged/nativescript and our public Slack channel: https://nativescriptcommunity.slack.com/\r\n\r\n+ nativescript@6.1.2\r\nadded 124 packages from 115 contributors, removed 51 packages and updated 178 packages in 11.277s\r\n```\r\n\r\nHowever when checking the version using 'tns --version' it still shows 5.1.0.  \r\n\r\nI have attempted to completely uninstall the CLI and to confirm I check that it is completely uninstalled by attempting to run a tns command, as well as checking 'which tns' - both of which seems to show it is completely deleted.  However, reinstalling nativescript always leads it back to 5.1.0.  \r\n\r\nRunning the command 'which tns' results in the following path:\r\n\r\n`/usr/local/bin/tns`\r\n\r\nAt this point I am stuck as to what to do to fix this, however my belief is that the issue lies in the path above not being equal to the path showed during the install process of /.npm-global/lib/node_modules/nativescript.  Any help would be greatly appreciated.\r\n\r\nThank you!\r\n"}}
{"actor":{"display_login":"joeytitans"}}