Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug]: 联网状态下,下载好依赖,并运行成功后!拷贝项目目录和依赖到内网(或其它目录)后,项目无法正常 #485

Closed
houmenglong opened this issue May 16, 2024 · 4 comments
Labels
wontfix This will not be worked on

Comments

@houmenglong
Copy link

Environment

Window

Version

latest

Version

latest

Link to minimal reproduction

2024-05-16_120757

Step to reproduce

node:internal/modules/cjs/loader:1137
throw err;
^

Error: Cannot find module 'F:\项目\tiny-engine-develop\node_modules\concurrently\dist\bin\concurrently.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v18.19.0

What is expected

No response

What is actually happening

No response

What is your project name

tiny-engine-develop

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: When connected to the Internet, download the dependencies and run them successfully! After copying the project directory and dependencies to the intranet (or other directories), the project does not work properly.

@kenekai
Copy link

kenekai commented May 20, 2024

可以看下这个PR:#360

@chilingling
Copy link
Member

联网状态下能够安装并启动成功,但是在手动拷贝代码以及依赖到另一个目录重新运行的场景太少了。官方精力有限,恕无法提供帮助。

建议通过内网搭建私有 npm registry 的方式来完成依赖的安装以及同步。
参考:

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It can be installed and started successfully when connected to the Internet, but there are too few scenarios where you need to manually copy the code and re-run the dependencies in another directory. Official energy is limited and we are unable to provide help.

It is recommended to build a private npm registry through the intranet to complete the installation and synchronization of dependencies.
refer to:

@chilingling chilingling added the wontfix This will not be worked on label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants