简体   繁体   English

Linux Azure Web应用程序上的node.js部署错误

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

I habe an azur app service (Linux), connected to a bitbucket git repository running. 我有一个Azur应用服务(Linux),已连接到正在运行的bitbucket git存储库。

When I try to deploy it, I get this error: 当我尝试部署它时,出现以下错误:

> 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.

Does any one have an idea, how to fix this? 有谁有主意,如何解决?

Thanks in advance, Dennis 预先感谢,丹尼斯

Check if you have installed protractor module. 检查是否已安装protractor模块。 If not, run this command in your app's root: 如果没有,请在您应用的根目录中运行以下命令:

npm install protractor

Or add this to the dependencies section of your package.json: 或将其添加到package.json的dependencies部分:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将AngularJS应用程序转换为“标准” Node.js应用程序以友好地部署Node.js托管 - Convert an AngularJS app into a “standard” Node.js app to be friendly deployment of Node.js Hosting 在Heroku上部署node.js - node.js deployment on Heroku 使用angularjs和node.js时的Web应用程序文件夹结构 - Web app folder structure when using angularjs and node.js Node.js应用程序适用于工头,但不适用于heroku。 404错误 - Node.js app works on foreman but not heroku. 404 Error 部署时Heroku应用程序错误node.js应用程序 - Heroku application error node.js app, when deploying Node.js Provider Rest API和angular.js Web应用程序 - Node.js Provider Rest API and angular.js WEB APP 无法使用node.js连接到Web服务器 - Cannot connect to web server with node.js 通过Node.js而不是像Xampp这样的服务器运行AngularJS Web应用程序的实际优势是什么? - What is the actual advantage of running an AngularJS web app over Node.js instead of a server like Xampp? 是否可以在没有node.js的情况下使用Ionic来构建托管的Web应用程序? - Can I use Ionic without node.js to build a hosted web app? 在Azure Node.js Web应用程序上运行angularjs 1.6.x,长网址导致404服务器错误 - Running angularjs 1.6.x on azure node.js webapp, long url causes a 404 server error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM