Cannot read properties of undefined (reading 'isServer')

来源:4-2 Vue-router之配置

吴_少

2021-12-05

npm install时候出现 Cannot read properties of undefined (reading ‘isServer’) 是什么原因

写回答

1回答

Jokcy

2021-12-08

what?npm install 还会报这种错?你把完整的日志贴上来吧

0
1
吴_少
PS D:\MyProject\coding-196> npm i npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'upath@1.0.0', npm WARN EBADENGINE required: { node: '>=0.10 <=7' }, npm WARN EBADENGINE current: { node: 'v16.13.1', npm: '8.1.2' } npm WARN EBADENGINE } npm WARN deprecated svgo@0.7.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm WARN deprecated set-value@2.0.0: Critical bug fixed in v3.0.1, please upgrade to the latest version. npm ERR! Cannot read properties of undefined (reading 'isServer') npm ERR! A complete log of this run can be found in: npm ERR! E:\development_tools\nodejs\node_cache\_logs\2021-12-11T05_51_23_512Z-debug.log PS D:\MyProject\coding-196>
2021-12-11
共1条回复

Vue核心技术 Vue+Vue-Router+Vuex+SSR实战精讲

深入讲解Vue核心技术,展示Vue应用开发中的各种问题和解决方案

3168 学习 · 853 问题

查看课程