tiny-engine icon indicating copy to clipboard operation
tiny-engine copied to clipboard

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

Open houmenglong opened this issue 9 months ago • 1 comments

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

houmenglong avatar May 16 '24 04:05 houmenglong

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.

Issues-translate-bot avatar May 16 '24 04:05 Issues-translate-bot

可以看下这个PR:https://github.com/opentiny/tiny-engine/pull/360

kenekai avatar May 20 '24 03:05 kenekai

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

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

  • https://github.com/cnpm/cnpm
  • https://github.com/verdaccio/verdaccio @houmenglong

chilingling avatar May 22 '24 11:05 chilingling

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:

  • https://github.com/cnpm/cnpm
  • https://github.com/verdaccio/verdaccio @houmenglong

Issues-translate-bot avatar May 22 '24 11:05 Issues-translate-bot