简体   繁体   English

如何在我的本地计算机上运行和更改克隆的应用程序?

[英]How can I run and make changes to a cloned app on my local machine?

I am relatively new to development and currently need to run a client's app on my local machine in order to make and test the changes.我对开发还比较陌生,目前需要在我的本地机器上运行客户端的应用程序才能进行和测试更改。 I cloned the app from the github repo, but have been unable to run the app on my local machine.我从 github 存储库克隆了该应用程序,但无法在我的本地计算机上运行该应用程序。

I have used the npm install, then the npm start command, but it gives me this error我使用了 npm 安装,然后是 npm 启动命令,但它给了我这个错误

`"> node dist/server.js `"> 节点 dist/server.js

node:internal/modules/cjs/loader:998 throw err;节点:内部/模块/cjs/loader:998 抛出错误; ^` ^`

Error: Cannot find module '********\dist\server.js' at Module._resolveFilename (node:internal/modules/cjs/loader:995:15) at Module._load (node:internal/modules/cjs/loader:841:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:82:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Error: Cannot find module '********\dist\server.js' at Module._resolveFilename (node:internal/modules/cjs/loader:995:15) at Module._load (node:internal/modules/cjs/loader:841:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:82:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

Node.js v19.0.1" I don't know how to proceed with this. Please help Node.js v19.0.1"我不知道如何进行此操作。请帮忙

Maybe You Are Missing environment variables.也许您缺少环境变量。 Get Them From The Client.从客户那里获取。

暂无
暂无

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

相关问题 如何对node.js库进行本地更改? - How can I make local changes to node.js library? 如何在Google App Engine的克隆存储库中部署应用程序? - How can I deploy my application within a cloned repository on Google App Engine? 您如何从本地计算机上的nodejs项目在Amazon EC2实例中运行Shell脚本? - How can you run a shell script in Amazon EC2 Instance from nodejs project in my local machine? 如何从我的本地机器部署我的 mern 网站? - how can I deploy my mern website from my local machine? 如何增加本地计算机上的websocket连接的最大数量? - How can I increase the maximum number of websocket connections on my local machine? 如何仅使用本地机器上的一个端口将我的 NodeJS/Express 后端连接到我的 VueJS 前端? - How can I connect my NodeJS/Express backend to my VueJS frontend using only one port on my local machine? 如何从在 docker 容器中运行的应用程序连接在我的机器上运行的 redis - How can I connect redis running on my machine from my app running in a docker container 如何在我的本地计算机上运行 Node.js 应用程序并使用 No-IP 让其他人从 Internet 访问它? - How do I run a Node.js application on my local machine and using No-IP to let someone else access it from the Internet? 我可以在本地运行我的应用程序。 但是当部署到heroku时,没有页面 - I can run my app at local. But when deploy to heroku, there is no page 如何通过ip地址从本地机器调用vm服务器上的node js服务器方法? - How can i call my node js sever method on vm server from my local machine through ip address?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM