Appbuild error with Sublime Text 3

Thread is closed for posting
6 posts, 0 answers
  1. Jean
    Jean avatar
    6 posts
    Member since:
    Jan 2017

    Posted 08 Jan 2017 Link to this post

    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

  2. Garo
    Admin
    Garo avatar
    155 posts

    Posted 11 Jan 2017 Link to this post

    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.

     
  3. Jean
    Jean avatar
    6 posts
    Member since:
    Jan 2017

    Posted 12 Jan 2017 in reply to Garo Link to this post

    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

  4. Garo
    Admin
    Garo avatar
    155 posts

    Posted 17 Jan 2017 Link to this post

    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: npm 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 "env" 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.

     
  5. Jean
    Jean avatar
    6 posts
    Member since:
    Jan 2017

    Posted 17 Jan 2017 in reply to Garo Link to this post

    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

  6. Garo
    Admin
    Garo avatar
    155 posts

    Posted 20 Jan 2017 Link to this post

    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.

     
Back to Top