2016-11-16 47 views
0

我正在關注以下鏈接,向離子應用添加天藍色的服務。如何在離子項目中使用Azure移動應用程序的JavaScript客戶端庫?

https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-html-how-to-use-client-library

不過,我以後不能

PS D:\Users\....\myapp> npm install azure-mobile-apps-client --save 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No README data 
[email protected] node_modules\azure-mobile-apps-client 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected], [email protected], [email protected]) 
└── [email protected] ([email protected]) 

回答

0

如果您使用的是NPM包找到該文件node_modules/azure-mobile-apps-client/dist/MobileServices.Web.min.js,那麼你需要做的僅僅是這樣的:

const MobileServices = require('azure-mobile-apps-client'); 

如果你想npm安裝只是爲了得到縮小的客戶端,在這裏下載它:https://zumo.blob.core.windows.net/sdk/azure-mobile-apps-client.min.js

此信息可在自述在GitHub庫的客戶端:https://github.com/azure/azure-mobile-apps-js-client

我們將在azure.com儘快地更新文檔。

+0

我正在使用Visual Studio。所以我可以下載'azure-mobile-apps-client.min.js'文件並將其包含在我的項目中,而不使用npm? – ca9163d9

+0

@ dc7a9163d9是的,你可以。 –

相關問題