Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下为什么前后端启动后前端右上角头像显示undefinedundefined(已解决) #20

Closed
q1393877285 opened this issue Mar 20, 2021 · 8 comments

Comments

@q1393877285
Copy link

No description provided.

@toesbieya
Copy link
Owner

试了下没问题,你是改了啥?

@q1393877285
Copy link
Author

试了下没问题,你是改了啥?

试了下没问题,你是改了啥?

没动过前端代码呢,从github上面clone到本地 然后yarn install安装并运行 后端也maven下载jar构建并运行 输入账号登录后右上角就这样了 会不会package文件中依赖的版本不对

@toesbieya
Copy link
Owner

toesbieya commented Mar 21, 2021

yarn install会不会用到package-lock.json?感觉是这个问题,换成npm试试 @q1393877285

@q1393877285
Copy link
Author

yarn install会不会用到package-lock.json?感觉是这个问题,换成npm试试

yarn install会不会用到package-lock.json?感觉是这个问题,换成npm试试 @q1393877285

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npm.taobao.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz - [not_found] document not found
npm ERR! 404
npm ERR! 404 '@nodelib/fs.stat@https://registry.npm.taobao.org/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! D:\nodejs\node_cache_logs\2021-03-21T05_27_00_987Z-debug.log

npm原版会一直卡主,切换淘宝镜像会爆上诉问题

× Install fail! Error: Unsupported URL Type: npm:vue-loader@^15.9.6
Error: Unsupported URL Type: npm:vue-loader@^15.9.6
at parseUrl (D:\nodejs\node_global\node_modules\cnpm\node_modules\npm-package-arg\npa.js:186:13)
at npa (D:\nodejs\node_global\node_modules\cnpm\node_modules\npm-package-arg\npa.js:79:12)
at _install (D:\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\lib\install.js:62:11)
at _install.next ()
at onFulfilled (D:\nodejs\node_global\node_modules\cnpm\node_modules\co\index.js:65:19)
at D:\nodejs\node_global\node_modules\cnpm\node_modules\co\index.js:54:5
at new Promise ()
at co (D:\nodejs\node_global\node_modules\cnpm\node_modules\co\index.js:50:10)
at toPromise (D:\nodejs\node_global\node_modules\cnpm\node_modules\co\index.js:118:63)
at next (D:\nodejs\node_global\node_modules\cnpm\node_modules\co\index.js:99:29)
npminstall version: 3.28.0
npminstall args: D:\nodejs\node.exe D:\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\发呆丶.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://r.npm.taobao.org

cnpm i会爆上面的错误。。。 真的真的能只有用yarn才能安装诶

@toesbieya
Copy link
Owner

toesbieya commented Mar 21, 2021

@q1393877285

啊这,那就只能手动固定版本了,手动修改package.json:

"el-admin-layout": "^0.3.0" -> "el-admin-layout": "0.3.0"
"pako": "^1.0.11" -> "pako": "1.0.11"

@q1393877285
Copy link
Author

@q1393877285

啊这,那就只能手动固定版本了,手动修改package.json:

"el-admin-layout": "^0.3.0" -> "el-admin-layout": "0.3.0"
"pako": "^1.0.11" -> "pako": "1.0.11"

还是无法下载指定的包 能提供下您开发时的node和npm版本嘛?我这node是v14.16.0 npm是v7.6.3可能有些高了

@toesbieya
Copy link
Owner

@q1393877285
node: v12.14.1
npm: 7.6.3

@q1393877285
Copy link
Author

@q1393877285
node: v12.14.1
npm: 7.6.3

搞了一下午node和npm版本和环境,确定是npm版本问题了 npm7下某些依赖文件无法下载,我现在卸载重新安装官网node14.16.0 npm6.14.11 再npm install恢复了

@q1393877285 q1393877285 changed the title 请问下为什么前后端启动后前端右上角头像显示undefinedundefined 请问下为什么前后端启动后前端右上角头像显示undefinedundefined(已解决) Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants