tiny-engine
tiny-engine copied to clipboard
🐛 [Bug]: 联网状态下,下载好依赖,并运行成功后!拷贝项目目录和依赖到内网(或其它目录)后,项目无法正常
Environment
Window
Version
latest
Version
latest
Link to minimal reproduction
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
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.
可以看下这个PR:https://github.com/opentiny/tiny-engine/pull/360
联网状态下能够安装并启动成功,但是在手动拷贝代码以及依赖到另一个目录重新运行的场景太少了。官方精力有限,恕无法提供帮助。
建议通过内网搭建私有 npm registry 的方式来完成依赖的安装以及同步。 参考:
- https://github.com/cnpm/cnpm
- https://github.com/verdaccio/verdaccio @houmenglong
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