簡體   English   中英

Linux Azure Web應用程序上的node.js部署錯誤

[英]Error with node.js deployment on Linux Azure web app

我有一個Azur應用服務(Linux),已連接到正在運行的bitbucket git存儲庫。

當我嘗試部署它時,出現以下錯誤:

> lhfrontend@1.0.0 postinstall /home/site/wwwroot
> npm run webdriver:update

npm WARN invalid config loglevel="notice"

> lhfrontend@1.0.0 webdriver:update /home/site/wwwroot
> node ./node_modules/protractor/bin/webdriver-manager update

module.js:471
    throw err;
    ^

Error: Cannot find module '/home/site/wwwroot/node_modules/protractor/bin/webdriver-manager'
An error has occurred during web site deployment.
    at Function.Module._resolveFilename (module.js:469:15)
npm failed
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:389:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:504:3

npm ERR! Linux 4.4.0-108-generic
npm ERR! argv "/opt/nodejs/6.11.0/bin/node" "/usr/bin/node_modules/npm/bin/npm-cli.js" "run" "webdriver:update"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! lhfrontend@1.0.0 webdriver:update: `node ./node_modules/protractor/bin/webdriver-manager update`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the lhfrontend@1.0.0 webdriver:update script 'node ./node_modules/protractor/bin/webdriver-manager update'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the lhfrontend package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./node_modules/protractor/bin/webdriver-manager update
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs lhfrontend
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls lhfrontend
npm ERR! There is likely additional logging output above.

有誰有主意,如何解決?

預先感謝,丹尼斯

檢查是否已安裝protractor模塊。 如果沒有,請在您應用的根目錄中運行以下命令:

npm install protractor

或將其添加到package.json的dependencies部分:

"dependencies": {
  "protractor": "^5.2.2"
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM