错误 [ERR_MODULE_NOT_FOUND]:找不到包 'cookie-es' |在 Windows 10 中构建 Nuxt 3 之后

问题描述 投票:0回答:0

问题

Nuxt 3 构建导出模块“cookie-es”作为参考,符号链接或它在 Win 中的调用方式。复制后参考为空

我提出一个问题

我如何告诉 Nuxt 将模块导出为标准目录(如果可能),或者在更糟糕的情况下,我如何在 Windows 中复制文件并删除引用并制作它们的真实文件?

问题展示

构建后“node_modules”的样子(路径....输出\服务器 ode_modules)
node_module cookie-es outside

构建后“node_modules”的样子(路径....输出\服务器 ode_modules)
node_module cookie-es inside

复制后“node_modules”的样子(otherPath....output\server ode_modules)
node_module cookie-es outside

复制后“node_modules”的样子(otherPath....output\server ode_modules)
node_module cookie-es inside

简而言之,复制后目录的内容丢失了,我猜是由于丢失了引用。

变量

操作系统:Windows 10
Nuxt:^3.4.3

我试图将文件从“构建模块”手动复制到“复制模块”中丢失的空白中。 它有效,但不可能手动找到有问题的并每次都复制它们。

windows-10 nuxtjs3 windows-explorer nuxt3
© www.soinside.com 2019 - 2024. All rights reserved.