vue-cli-service build 打包程序时报错,node_modules里一个npm依赖import导入路径错误?

版本号:

node: 14.17.1

npm: 6.14.13

vue: 2.6.10

@vue/cli-service: 3.11.0

webpack: 4.0.0

js-web-screen-shot: 1.8.6

报错信息:
vue-cli-service build 打包程序时报错,node_modules里一个npm依赖import导入路径错误?
依赖文件结构:
vue-cli-service build 打包程序时报错,node_modules里一个npm依赖import导入路径错误?
报错日志:

0 info it worked if it ends with ok

1 verbose cli [

1 verbose cli 'C:\\Users\\Administrator\\AppData\\Local\\Volta\\tools\\image\\node\\14.17.1\\node.exe',

1 verbose cli 'C:\\Users\\Administrator\\AppData\\Local\\Volta\\tools\\image\\npm\\6.14.13\\bin\\npm-cli.js',

1 verbose cli 'run',

1 verbose cli 'build'

1 verbose cli ]

2 info using npm@6.14.13

3 info using node@v14.17.1

4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]

5 info lifecycle guandie-vue@1.0.0~prebuild: guandie-vue@1.0.0

6 info lifecycle guandie-vue@1.0.0~build: guandie-vue@1.0.0

7 verbose lifecycle guandie-vue@1.0.0~build: unsafe-perm in lifecycle true

8 verbose lifecycle guandie-vue@1.0.0~build: PATH: C:\Users\Administrator\AppData\Local\Volta\tools\image\npm\6.14.13\node_modules\npm-lifecycle\node-gyp-bin;D:\观牒中台\gdzt-vue\node_modules\.bin;C:\Users\Administrator\AppData\Local\Volta\tools\image\npm\6.14.13\bin;C:\Users\Administrator\AppData\Local\Volta\tools\image\yarn\1.22.19\bin;C:\Users\Administrator\AppData\Local\Volta\tools\image\node\14.17.1;E:\VMware\bin\;C:\Program Files\Volta\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk-15.0.2\bin;D:\Develop\apache-tomcat-8.0.36\lib;D:\Develop\apache-tomcat-8.0.36\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseSVN\bin;E:\微信web开发者工具\dll;C:\Users\Administrator\AppData\Local\Yarn\bin;C:\ProgramData\chocolatey\bin;E:\Xftp 7\;E:\Xshell 7\;C:\Users\Administrator\AppData\Local\Volta\bin;C:\Users\Administrator\.windows-build-tools\python27\;E:\nvm\nvm\v16.14.2\node_modules\windows-build-tools\node_modules\.bin;E:\nvm\nvm\v16.14.2\node_modules\node_modules\.bin;E:\nvm\nvm\v16.14.2\node_modules\.bin;E:\nvm\nvm\node_modules\.bin;E:\nvm\node_modules\.bin;E:\node_modules\.bin;E:\nvm\nvm\v16.14.2\node_modules\npm\node_modules\@npmcli\run-script\lib\node-gyp-bin;C:\Python310\Scripts\;C:\Python310\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Java\jdk-15.0.2\bin;D:\Develop\apache-tomcat-8.0.36\lib;D:\Develop\apache-tomcat-8.0.36\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseSVN\bin;E:\微信web开发者工具\dll;;E:\Microsoft VS Code\bin;C:\Users\Administrator\.deno\bin

9 verbose lifecycle guandie-vue@1.0.0~build: CWD: D:\观牒中台\gdzt-vue

10 silly lifecycle guandie-vue@1.0.0~build: Args: [ '/d /s /c', 'vue-cli-service build' ]

11 silly lifecycle guandie-vue@1.0.0~build: Returned: code: 1 signal: null

12 info lifecycle guandie-vue@1.0.0~build: Failed to exec build script

13 verbose stack Error: guandie-vue@1.0.0 build: `vue-cli-service build`

13 verbose stack Exit status 1

13 verbose stack at EventEmitter.<anonymous> (C:\Users\Administrator\AppData\Local\Volta\tools\image\npm\6.14.13\node_modules\npm-lifecycle\index.js:332:16)

13 verbose stack at EventEmitter.emit (events.js:375:28)

13 verbose stack at ChildProcess.<anonymous> (C:\Users\Administrator\AppData\Local\Volta\tools\image\npm\6.14.13\node_modules\npm-lifecycle\lib\spawn.js:55:14)

13 verbose stack at ChildProcess.emit (events.js:375:28)

13 verbose stack at maybeClose (internal/child_process.js:1055:16)

13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

14 verbose pkgid guandie-vue@1.0.0

15 verbose cwd D:\观牒中台\gdzt-vue

16 verbose Windows_NT 10.0.19044

17 verbose argv "C:\\Users\\Administrator\\AppData\\Local\\Volta\\tools\\image\\node\\14.17.1\\node.exe" "C:\\Users\\Administrator\\AppData\\Local\\Volta\\tools\\image\\npm\\6.14.13\\bin\\npm-cli.js" "run" "build"

18 verbose node v14.17.1

19 verbose npm v6.14.13

20 error code ELIFECYCLE

21 error errno 1

22 error guandie-vue@1.0.0 build: `vue-cli-service build`

22 error Exit status 1

23 error Failed at the guandie-vue@1.0.0 build script.

23 error This is probably not a problem with npm. There is likely additional logging output above.

24 verbose exit [ 1, true ]

以上是 vue-cli-service build 打包程序时报错,node_modules里一个npm依赖import导入路径错误? 的全部内容, 来源链接: utcz.com/p/933782.html

回到顶部