简体   繁体   English

找不到模块 workspace/server.js

[英]could not find module workspace/server.js

I am trying to launch a gcloud app engine using an example in fast-ai with a model that i developped https://github.com/imiled/google-app-engine and followed the instructions in the fastai web page https://course.fast.ai/deployment_google_app_engine.html我正在尝试使用 fast-ai 中的示例启动 gcloud 应用引擎,其中包含我开发的88361633527088://github.com/imiled/google-app-engine并按照 fastai web 页面https://中的说明进行操作course.fast.ai/deployment_google_app_engine.html

but it does not seem to work it raises the following error when i go to the page:但它似乎不起作用,当我 go 到页面时它会引发以下错误:

Error: Server Error The server encountered an error and could not complete your request.错误:服务器错误 服务器遇到错误,无法完成您的请求。 Please try again in 30 seconds.请在 30 秒后重试。

here is the log that i got from the console:这是我从控制台获得的日志:

miledismael@cloudshell:~/google-app-engine (classification-276710)$ gcloud app browse
Did not detect your browser. Go to this link to view your app:
https://classification-276710.ew.r.appspot.com
miledismael@cloudshell:~/google-app-engine (classification-276710)$ gcloud app logs tail -s default
Waiting for new log entries...
2020-05-11 22:16:26 default[20200512t001309]  "GET / HTTP/1.1" 500
2020-05-11 22:16:28 default[20200512t001309]  internal/modules/cjs/loader.js:983
2020-05-11 22:16:28 default[20200512t001309]    throw err;
2020-05-11 22:16:28 default[20200512t001309]    ^
2020-05-11 22:16:28 default[20200512t001309]
2020-05-11 22:16:28 default[20200512t001309]  Error: Cannot find module '/workspace/server.js'      at Funct
ion.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)      at Function.Module._load (internal/
modules/cjs/loader.js:862:27)      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main
.js:74:12)      at internal/main/run_main_module.js:18:47 {
2020-05-11 22:16:28 default[20200512t001309]    code: 'MODULE_NOT_FOUND',
2020-05-11 22:16:28 default[20200512t001309]    requireStack: []
2020-05-11 22:16:28 default[20200512t001309]  }

If anybody could help that would be great thanks如果有人可以提供帮助,那将是非常感谢

There are 2 problems with your app right now:您的应用目前存在 2 个问题:

  • It does not have all the correct requirements described on requirements.txt installed, try installing it again by running cat requirements.txt | xargs npm install -g它没有安装requirements.txt中描述的所有正确要求,尝试通过运行cat requirements.txt | xargs npm install -g再次安装它。 cat requirements.txt | xargs npm install -g

  • As per your mention on the comments, your app needs more resources in the container it's running on, so you should add that to your app.yaml configuration as described on this documentation根据您在评论中提到的,您的应用程序在其运行的容器中需要更多资源,因此您应该按照本文档中的描述将其添加到您的app.yaml配置中

Don't include package-lock.json in the folder.不要在文件夹中包含 package-lock.json。 Possibly that's it可能就是这样

暂无
暂无

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

相关问题 错误:在谷歌应用引擎上部署 node.js 后找不到模块“/workspace/server.js” - Error: Cannot find module '/workspace/server.js' upon node js deploy on google app engine 找不到 package.json。 Node.js 可能有启动问题。 验证 package.json 是否有效或将代码放在名为 server.js 或 app.js 的文件中 - Failed to find package.json. Node.js may have issues starting. Verify package.json is valid or place code in a file named server.js or app.js Vue3.js )错误:找不到模块'firebase' - Vue3.js ) Error: Cannot find module 'firebase' 出现错误:找不到模块“js-yaml” - Getting Error: Cannot find module 'js-yaml' 在服务器上出现“找不到模块”错误,但本地有效 - Getting error 'Cannot find module' on server but local works 找不到模块'puppeteer' - Cannot find module 'puppeteer' 在 GKE 中安装 istio 时出错 = 服务器找不到请求的资源(发布 `gatewaies.networking.istio.io`) - Error install istio in GKE = the server could not find the requested resource (post `gatewaies.networking.istio.io`) 无法对安全令牌进行身份验证或授权错误(使用 Tedious 与 MS SQL 服务器建立 Node JS 连接) - Security token could not be authenticated or authorized error ( Node JS connectivity with MS SQL Server using Tedious) 将 typescript 应用程序发布到 azure 时找不到模块 '../lib/tsc.js' - Cannot find module '../lib/tsc.js' when releasing typescript application to azure 使用 Azure PowerShell 查找 App Insights 的 LA 工作区 - Find LA workspace for an App Insights using Azure PowerShell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM