2015-08-18 54 views
0

使用npmjspm安裝了一些軟件包之後,我看到如下錯誤。是否有一些TFS接受這些無效字符的設置。團隊基金會在路徑中出現錯誤

TF10122: The path '$/$.core.js' contains a '$' at the beginning of a path component. Remove the '$' and try again. 
TF10122: The path '$/$.invoke.js' contains a '$' at the beginning of a path component. Remove the '$' and try again. 
TF10122: The path '$/$.partial.js' contains a '$' at the beginning of a path component. Remove the '$' and try again. 
TF10122: The path '$/$.to-object.js' contains a '$' at the beginning of a path component. Remove the '$' and try again. 
TF10122: The path '$/$.to-iobject.js' contains a '$' at the beginning of a path component. Remove the '$' and try again. 
TF10122: The path '$/$.object-to-array.js' contains a '$' at the beginning of a path component. Remove the '$' and try again. 
+1

在什麼情況下,你得到這個錯誤?在構建過程中? –

+0

當我在VS 2015的powershell窗口中運行像** jspm install aurelia **這樣的命令時,我看到了這些錯誤。 –

+0

對於Core-JS(大部分Aurelia會遇到的問題),請注意bug:https://github.com/zloirock/core-js/issues/129 希望在下一個主要版本中得到解決。 – Andrew

回答

1

您的服務器路徑中不能有$

如果你真的必須在文件名中有一個$那麼你可以從$/acceptable-filename工作文件夾映射設立的c:/$.to-object.js本地路徑。

(另請注意,你不應該只是把文件在存儲庫的根。把它們放在一個團隊項目中。)

+1

我無法控制這些,因爲這些是由** jspm **軟件包管理器下載到我的項目中的npm和GitHub模塊。 –

+1

然後你唯一的解決方法是分別映射這些文件,以便服務器路徑沒有'$' –