无法为Azure移动应用安装npm模块

时间:2016-07-27 09:58:35

标签: node.js azure azure-mobile-services npm-install kudu

有人可以帮我安装Azure移动应用程序的node.js模块吗?

我想在Azure移动应用中使用azure-storage。 我尝试了以下两种方法并得到了同样的错误:
  1.安装在kudu终端(npm install" azure-storage")
  2.添加"依赖关系"包json中的模块和从本地git推送(" azure-storage":"> = 1.1.0")

remote: npm ERR! node v4.2.3
remote: npm ERR! npm  v3.5.1
remote: npm ERR! path D:\home\site\wwwroot\node_modules\azure-storage
remote: npm ERR! code EPERM
remote: npm ERR! errno -4048
remote: npm ERR! syscall rename
remote: Failed exitCode=-4048, command="D:\Program Files     (x86)\nodejs\4.2.3\node.exe" "D:\Program Files (x86)\npm\3.5.1\node_modules\npm\bin\npm-cli.js" install --production
remote:
remote: An error has occurred during web site deployment.
remote: npm ERR! Error: EPERM: operation not permitted, rename 'D:\home\site\wwwroot\node_modules\azure-storage' -> 'D:\home\site\wwwroot\node_modules\.azure-storage.DELETE'
remote: npm ERR!     at Error (native)
remote: npm ERR!  { [Error: EPERM: operation not permitted, rename 'D:\home\site\wwwroot\node_modules\azure-storage' -> 'D:\home\site\wwwroot\node_modules\.azure-storage.DELETE']
remote: npm ERR!   errno: -4048,
remote: npm ERR!   code: 'EPERM',
remote: npm ERR!   syscall: 'rename',
remote: npm ERR!   path: 'D:\\home\\site\\wwwroot\\node_modules\\azure-storage',
remote: npm ERR!   dest: 'D:\\home\\site\\wwwroot\\node_modules\\.azure-storage.DELETE',
remote: npm ERR!   parent: 'azure-mobile-apps-quickstarts.backend.node.EmptySite' }
remote: npm ERR!
remote: npm ERR! Please try running this command again as root/Administrator.
remote:
remote: npm ERR! Please include the following file with any support request:
remote: npm ERR!     D:\home\site\wwwroot\npm-debug.log
remote:
remote: Error - Changes committed to remote repository but deployment to website failed.

在今天遇到此错误之前,我使用了" npm install"在kudu终端,一切看起来还不错。

有谁知道如何解决这个问题?

感谢任何帮助,谢谢。

更新package.json

{
  "engines": {
    "node": "=4.2.1"
  },
  "name": "azure-mobile-apps-quickstarts.backend.node.EmptySite",
  "version": "0.0.1",
  "amax_version": "2.0.19.160727",
  "description": "Samples for Azure Mobile Apps",
  "author": "Microsoft",
  "repository": "Azure/azure-mobile-apps-quickstarts",
  "license": "MIT",
  "dependencies": {
    "express": "^4.13.0",
    "azure-mobile-apps": "^2.1.0",
    "azure-storage": "^1.1.0",
    "sendgrid": "^3.0.11"
  },
  "devDependencies": {}
}

0 个答案:

没有答案