[英]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.