-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error at running cli after install #498
Comments
From @NathanaelA on May 23, 2015 17:25 Looking at the source it is looking for one of these environmental variables: What unix variant are you running that one of those isn't defined? Can you run a output your exports and see what variable actually has your user name in it? |
From @teobugslayer on May 25, 2015 9:53 Hi @elidiazgt, can you run |
From @elidiazgt on May 26, 2015 1:11 Hello @teobugslayer TypeError: Arguments to path.join must be strings |
From @elidiazgt on May 26, 2015 1:12 hello @NathanaelA am using a docker container, if i run this commands |
From @NathanaelA on May 26, 2015 3:20 @teobugslayer -- the issue is a missing environmental variable -- their are a couple places in the TNS/NativeScript cli & several gruntfiles where Telerik is assuming a environmental variable is set and it will crash if they are not. This is one of those cases... @elidiazgt - you can either before you run TNS/NativeScript, do a export USER="" where is the user in the container so that the TNS command can create the lock directory. Another choice would be to type "set | grep -i " again where is what user that is running inside the docker container and see which environmental variable IS set to have the user name. Then I (or someone at Telerik) can commit a quick change that will add that environmental variable to the list of valid variables to pull the environment from. A third possibility would be for you to do a quick export USER= once before you run the TNS command so that user is set. |
From @NathanaelA on May 26, 2015 5:14 @teobugslayer -- since you actually appear to be one of the Telerik devs on CLI; the issue is the "cancellation.ts" file inside the mobile-cli-lib project. https://github.com/telerik/mobile-cli-lib/blob/master/services/cancellation.ts#L61 -- I'll did a pull request telerik/mobile-cli-lib#345 to fix this. |
Hello @NathanaelA, indeed, CancellationService is a code which is needed on Windows to ensure that files are cleanly overwritten on update and uninstall. We decided to stop using it on Linux & Mac. The relevant commits are in the master branch: telerik/mobile-cli-lib@d1230fa and telerik/mobile-cli-lib@61b2d77 . The fixes will be in our next public release. In the mean time, the hack with exporting USER should work with the caveat that it must also be done when removing the NativeScript CLI. |
We have released {N} CLI 1.0.2 which addresses this issue. Give it a try and check if it works for you. Thank you for your help! |
From @elidiazgt on May 23, 2015 16:31
$ nativescript --help
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at Function.Object.defineProperty.get [as killSwitchDir](/usr/lib/node_modules/nativescript/lib/com
mon/services/cancellation.js:55:25)
at new CancellationService (/usr/lib/node_modules/nativescript/lib/common/services/cancellation.js:1
3:53)
at Yok.resolveConstructor (/usr/lib/node_modules/nativescript/lib/common/yok.js:289:18)
at Yok.resolveByName (/usr/lib/node_modules/nativescript/lib/common/yok.js:315:44)
at Yok.resolve (/usr/lib/node_modules/nativescript/lib/common/yok.js:247:25)
at /usr/lib/node_modules/nativescript/lib/common/yok.js:280:30
at Array.map (native)
Copied from original issue: NativeScript/NativeScript#208
The text was updated successfully, but these errors were encountered: