我目前使用npm install
爲Angular2項目CI項目安裝所有軟件包,但是此步驟已開始增加構建代理構建項目所需的時間。我想通過使用npm-cache
命令獲得CI管道的構建運行時間,但是我一直嘗試通過構建代理運行命令失敗。使用npm-cache VS Team Services的正確方法
我已經使用命令行步具有以下嘗試:
這一結果在錯誤File name doesn't indicate a full path to a executable file
。
我也已嘗試加入NPM步驟:
這導致以下:
2017-06-14T13:01:13.2274922Z [命令] C:\ Program Files \ nodejs \ npm.cmd緩存安裝
2017-06-14T13:01:19.8609829Z npm ERR!用法:npm cache添加tarball文件
2017-06-14T13:01:19.8630626Z npm ERR! npm cache add folder
2017-06-14T13:01:19.8630626Z npm ERR! npm cache add tarball url
2017-06-14T13:01:19.8640981Z npm ERR! npm cache add git url
2017-06-14T13:01:19.8651863Z npm ERR! npm cache add name @ version
2017-06-14T13:01:19.8661607Z npm ERR! npm cache ls path
2017-06-14T13:01:19.8672137Z npm ERR! npm cache clean pkg @版本
什麼是從Team Services中調用npm cache
的正確方法?
您是否使用自己的代理或託管代理? –
我們使用的是本地代理 – Novastorm