geeklearningio / gl-vsts-tasks-yarn

Yarn Package Manager Visual Studio Team Services Build and Release Management extensions
MIT License
52 stars 18 forks source link

Unable to run yarn in TFS2015 #46

Closed newbish closed 6 years ago

newbish commented 6 years ago

Are you reporting a bug or a feature request ?

Description

Unable to run run yarn task after install task. 2018-02-27T21:53:31.1404186Z Set workingFolder to default: D:\TFSBuild\tasks\Yarn\2.4.999 2018-02-27T21:53:31.8884718Z ##[debug]agent.workFolder=D:\TFSBuild_work 2018-02-27T21:53:31.8944677Z ##[debug]loading inputs and endpoints ... 2018-02-27T21:53:31.8994698Z ##[debug]loaded 12 2018-02-27T21:53:32.6915198Z ##[debug]check path : D:\TFSBuild\tasks\Yarn\2.4.999\task.json 2018-02-27T21:53:32.6915198Z ##[debug]set resource file to: D:\TFSBuild\tasks\Yarn\2.4.999\task.json 2018-02-27T21:53:32.6915198Z ##[debug]system.culture=en-US 2018-02-27T21:53:33.0005407Z ##[debug]which 'yarn' 2018-02-27T21:53:33.0285447Z ##[debug]not found 2018-02-27T21:53:33.0295439Z ##[debug]Arguments=null 2018-02-27T21:53:33.0335440Z ##[debug]ProjectDirectory=D:\TFSBuild_work\76\s\Web 2018-02-27T21:53:33.0335440Z ##[debug]customRegistry=useNpmrc 2018-02-27T21:53:33.0345439Z ##[debug]customFeed=null 2018-02-27T21:53:33.0345439Z ##[debug]customEndpoint=null 2018-02-27T21:53:33.0355436Z ##[debug]Error: couldn't locate Yarn 2018-02-27T21:53:33.0355436Z ##[debug]Error: couldn't locate Yarn 2018-02-27T21:53:33.0365447Z at D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:58:23 2018-02-27T21:53:33.0365447Z at next (native) 2018-02-27T21:53:33.0375457Z at D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:7:71 2018-02-27T21:53:33.0375457Z at __awaiter (D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:3:12) 2018-02-27T21:53:33.0375457Z at yarnExec (D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:55:12) 2018-02-27T21:53:33.0385439Z at Object. (D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:132:1) 2018-02-27T21:53:33.0385439Z at Module._compile (module.js:413:34) 2018-02-27T21:53:33.0385439Z at Object.Module._extensions..js (module.js:422:10) 2018-02-27T21:53:33.0395437Z at Module.load (module.js:357:32) 2018-02-27T21:53:33.0395437Z at Function.Module._load (module.js:314:12) 2018-02-27T21:53:33.0405438Z ##[debug]task result: Failed 2018-02-27T21:53:33.0475471Z ##[error]Error: couldn't locate Yarn 2018-02-27T21:53:33.0595559Z ##[debug]Agent.BuildDirectory=D:\TFSBuild_work\76 2018-02-27T21:53:33.0605519Z ##[debug]testing directory 'D:\TFSBuild_work\76\npm' 2018-02-27T21:53:33.0605519Z ##[debug]testing directory 'D:\TFSBuild_work\76' 2018-02-27T21:53:33.0605519Z ##[debug]mkdir 'D:\TFSBuild_work\76\npm' 2018-02-27T21:53:33.0615559Z ##[debug]rm -rf D:\TFSBuild_work\76\npm 2018-02-27T21:53:33.0615559Z ##[debug]removing directory

System information

VSTS or TFS:

Agent:

OS:

Yarn version: *1.5.1**

Node version: *8.9.1**

sandorfr commented 6 years ago

We do not support TFS2015 as it is using the legacy built agent which completely stale and does not have tool installer and other recent features.

That said, You might be able to install yarn yourself (make sure it’s in the path) and add the capability to your agent. On Tue 27 Feb 2018 at 23:24, Keith Kikta notifications@github.com wrote:

Are you reporting a bug or a feature request ?

  • Bug
  • Feature request

Description

Unable to run run yarn task after install task. 2018-02-27T21:53:31.1404186Z Set workingFolder to default: D:\TFSBuild\tasks\Yarn\2.4.999 2018-02-27T21:53:31.8884718Z ##[debug]agent.workFolder=D:\TFSBuild_work 2018-02-27T21:53:31.8944677Z ##[debug]loading inputs and endpoints ... 2018-02-27T21:53:31.8994698Z ##[debug]loaded 12 2018-02-27T21:53:32.6915198Z ##[debug]check path : D:\TFSBuild\tasks\Yarn\2.4.999\task.json 2018-02-27T21:53:32.6915198Z ##[debug]set resource file to: D:\TFSBuild\tasks\Yarn\2.4.999\task.json 2018-02-27T21:53:32.6915198Z ##[debug]system.culture=en-US 2018-02-27T21:53:33.0005407Z ##[debug]which 'yarn' 2018-02-27T21:53:33.0285447Z ##[debug]not found 2018-02-27T21:53:33.0295439Z ##[debug]Arguments=null 2018-02-27T21:53:33.0335440Z

[debug]ProjectDirectory=D:\TFSBuild_work\76\s\Web

2018-02-27T21:53:33.0335440Z ##[debug]customRegistry=useNpmrc 2018-02-27T21:53:33.0345439Z ##[debug]customFeed=null 2018-02-27T21:53:33.0345439Z ##[debug]customEndpoint=null 2018-02-27T21:53:33.0355436Z ##[debug]Error: couldn't locate Yarn 2018-02-27T21:53:33.0355436Z ##[debug]Error: couldn't locate Yarn 2018-02-27T21:53:33.0365447Z at D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:58:23 2018-02-27T21:53:33.0365447Z at next (native) 2018-02-27T21:53:33.0375457Z at D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:7:71 2018-02-27T21:53:33.0375457Z at __awaiter (D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:3:12) 2018-02-27T21:53:33.0375457Z at yarnExec (D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:55:12) 2018-02-27T21:53:33.0385439Z at Object. (D:\TFSBuild\tasks\Yarn\2.4.999\yarnTask.js:132:1) 2018-02-27T21:53:33.0385439Z at Module._compile (module.js:413:34) 2018-02-27T21:53:33.0385439Z at Object.Module._extensions..js (module.js:422:10) 2018-02-27T21:53:33.0395437Z at Module.load (module.js:357:32) 2018-02-27T21:53:33.0395437Z at Function.Module._load (module.js:314:12) 2018-02-27T21:53:33.0405438Z ##[debug]task result: Failed 2018-02-27T21:53:33.0475471Z ##[error]Error: couldn't locate Yarn 2018-02-27T21:53:33.0595559Z

[debug]Agent.BuildDirectory=D:\TFSBuild_work\76

2018-02-27T21:53:33.0605519Z ##[debug]testing directory 'D:\TFSBuild_work\76\npm' 2018-02-27T21:53:33.0605519Z ##[debug]testing directory 'D:\TFSBuild_work\76' 2018-02-27T21:53:33.0605519Z ##[debug]mkdir 'D:\TFSBuild_work\76\npm' 2018-02-27T21:53:33.0615559Z ##[debug]rm -rf D:\TFSBuild_work\76\npm 2018-02-27T21:53:33.0615559Z ##[debug]removing directory System information

VSTS or TFS:

  • VSTS
  • TFS

Agent:

  • Hosted
  • Custom

OS:

  • Windows
  • Mac
  • Linux

Yarn version: *1.5.1**

Node version: *8.9.1**

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/geeklearningio/gl-vsts-tasks-yarn/issues/46, or mute the thread https://github.com/notifications/unsubscribe-auth/ACiXprY6pFnvJeIlmISu-P59P4H5H0h1ks5tZICEgaJpZM4SVv1t .