This is a migrated thread and some comments may be shown as answers.

Appbuild error with Sublime Text 3

5 Answers 51 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jean
Top achievements
Rank 1
Jean asked on 08 Jan 2017, 12:06 PM

Hi 

New user with nativescript and seam to be very good but if I would have to use Powershell to program my application, I'll go back to use Fuse. I'm not able to install Sublime text 3 to Appbuild, I always received the same Appbuild error. I followed the procedure but is still there a bug.

Somebody have an Idea about my problem ?

 

Thank's

5 Answers, 1 is accepted

Sort by
0
Garo
Telerik team
answered on 11 Jan 2017, 08:59 AM
Hello Jean,

Based on the info provided here and in the other thread, I suspect the issue is related to Node.js. It seems that Node is not added to the PATH environment variable. To resolve this you should reinstall Node. Just verify that in the Node installation wizard the Add to PATH option is enabled.

After completing the Node installation you should be able to install the AppBuilder CLI and then the AppBuilder Sublime Text package.

Please, let me know if this is helpful or you require additional assistance on this subject.

Regards,
Garo
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Jean
Top achievements
Rank 1
answered on 12 Jan 2017, 06:45 PM

Hi Garo,

I followed the procedure you written but I’m still having the same problem. Have another Idea ?

I want to use Sublime cause your appbuilder text editor is not readable for me, the text is tiny and no available option to increase it and it’s not usable for me.

By the way, I found a way to make to make it run in running sublime text in Administration mode but I obtained differents errors, see below;

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
[36mUsing tsc version 2.0.10[39m
[32m
Success: 16.93s
.[39m
Executing before-livesync hook from C:\NativeScript\sample-Groceries-master\hooks\before-livesync\nativescript-angular-sync.js
[33mbefore-livesync will NOT be executed because it has invalid arguments - [90m$usbLiveSyncService[39m.[39m
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\karma\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

Executing before-livesync hook from C:\Users\Jean\AppData\Roaming\npm\node_modules\appbuilder\lib\hooks\before-livesync.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\karma\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
[36mUsing tsc version 2.0.10[39m
[32m
Success: 14.31s
.[39m
Executing before-livesync hook from C:\NativeScript\sample-Groceries-master\hooks\before-livesync\nativescript-angular-sync.js
[33mbefore-livesync will NOT be executed because it has invalid arguments - [90m$usbLiveSyncService[39m.[39m

0
Garo
Telerik team
answered on 17 Jan 2017, 09:35 AM
Hello Jean,

Based on the provided error message it seems that AppBuilder is working. However, the log that you shared does not contain the whole error message. I would kindly ask you to provide me with the entire error message so I can determine what is causing the failure.

Additionally, in an attempt to resolve the issue, I would ask you to try this approach:
  1. Open the console (command prompt) in administration mode.
  2. Enter the following command: config get prefix
  3. This should return a path that you should copy.
  4. Now you should open the Environment Variables for your account. On Windows 10 you can accomplish this by entering "" in the search box and then select Edit environment variables for your account.
  5. Under User variables for username, locate the PATH variable and select Edit.
  6. In the newly opened dialog select  New and paste the path that you copied in step 3.
  7. Try to use AppBuilder in Sublime Text again.

I hope this helps, otherwise, I am looking forward to your reply containing the full error message that you receive.

Regards,
Garo
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Jean
Top achievements
Rank 1
answered on 17 Jan 2017, 12:31 PM

Hi Garo, 

I followed your procedure and tried to execute Sublime 3 in normal mode and still obtained the same error. I tried it again in Administrator mode and everything was OK. I don't really know what can cause that but at least, it's working.

Thank's

Jean

0
Garo
Telerik team
answered on 20 Jan 2017, 09:48 AM
Hello Jean,

I am glad to hear that you were able to install and run the AppBuilder package for Sublime text.

Why this is working only in administrator mode, I cannot be certain. Usually, this is observed when your current user does not have specific permissions. Having said that, as I am unable to reproduce anything similar on my end, I do not believe I can provide further assistance regarding this exact issue.  

I hope running Sublime Text in administration mode is acceptable and does not cause you any inconvenience.

Regards,
Garo
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Report a bug
Asked by
Jean
Top achievements
Rank 1
Answers by
Garo
Telerik team
Jean
Top achievements
Rank 1
Share this question
or