madskristensen / NpmTaskRunner

Visual Studio extension
Other
88 stars 32 forks source link

running from taskrunner provide error, not from command line #33

Closed tbuffryslb closed 8 years ago

tbuffryslb commented 8 years ago

Installed product versions

https.get(path, (resHttps) => { ^ SyntaxError: Unexpected token > at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3

Steps to recreate

  1. create a app.js with such code : https.get(path, (resHttps) => {
  2. run from commond line => works
  3. run from visual studio task runner => errors
scottaddie commented 8 years ago

@tbuffryslb Did you already move the $(PATH) entry in the External Web Tools dialog, so that the correct version of npm is being used by Visual Studio? Here's a blog post discussing how:

https://blogs.msdn.microsoft.com/webdev/2015/03/19/customize-external-web-tools-in-visual-studio-2015/

tbuffryslb commented 8 years ago

Thank you very much for your rapid response, it solved my issue.

Regards,

From: Scott Addie [mailto:notifications@github.com] Sent: Thursday, September 1, 2016 2:22 PM To: madskristensen/NpmTaskRunner NpmTaskRunner@noreply.github.com Cc: Thomas Buffry TBuffry@slb.com; Mention mention@noreply.github.com Subject: [Ext] Re: [madskristensen/NpmTaskRunner] running from taskrunner provide error, not from command line (#33)

@tbuffryslbhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_tbuffryslb&d=CwMFaQ&c=uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw&r=mtiePUqGAVSWIzZVr4jZ4g&m=lJPkWwU2i4DshK9AOisvAzZnmLhjvLAFTBta1aQ8M-s&s=hGoUadZP6Jzm40nFYZeOOMmnvvcelVGa_ZBTs_b0eFY&e= Did you already move the $(PATH) entry in the External Web Tools dialog, so that the correct version of npm is being used by Visual Studio? Here's a blog post discussing how:

https://blogs.msdn.microsoft.com/webdev/2015/03/19/customize-external-web-tools-in-visual-studio-2015/https://urldefense.proofpoint.com/v2/url?u=https-3A__blogs.msdn.microsoft.com_webdev_2015_03_19_customize-2Dexternal-2Dweb-2Dtools-2Din-2Dvisual-2Dstudio-2D2015_&d=CwMFaQ&c=uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw&r=mtiePUqGAVSWIzZVr4jZ4g&m=lJPkWwU2i4DshK9AOisvAzZnmLhjvLAFTBta1aQ8M-s&s=l_5ThKXdqqKJAduSpf7vx_7DcY2x3o9peHIVTSDsF7Q&e=

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_madskristensen_NpmTaskRunner_issues_33-23issuecomment-2D244061947&d=CwMFaQ&c=uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw&r=mtiePUqGAVSWIzZVr4jZ4g&m=lJPkWwU2i4DshK9AOisvAzZnmLhjvLAFTBta1aQ8M-s&s=YNWN-nYGcSraoevdlm-JYNsNP3cxeX6K4FMg3wb-DTI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3Agithub.com_notifications_unsubscribe-2Dauth_AS2yzCPhOg7Cjz3vIBgyOfJQNxyOolK3ks5qlsNTgaJpZM4JyZKJ&d=CwMFaQ&c=uGuXJ43KPkPWEl2imVFDmZQlhQUET7pVRA2PDIOxgqw&r=mtiePUqGAVSWIzZVr4jZ4g&m=lJPkWwU2i4DshK9AOisvAzZnmLhjvLAFTBta1aQ8M-s&s=Gk8E9T5Bh5ccSKSmM-dGCNZ3BEjQOrfJY34lrMQXqhk&e=.