alibaba / rax

🐰 Rax is a progressive framework for building universal application. https://rax.js.org
Other
8k stars 627 forks source link

为什么脚手架搭建的rax项目包不是最新版本,比如rax-app #2357

Open dong-lufei opened 2 years ago

dong-lufei commented 2 years ago

用npm outdated或者yarn upgrade-interactive --latest 检查项目依赖包。却不提示更新到最新版本,比如rax-app应该最新版应该是3.8.18,项目是3.8.7

SoloJiang commented 2 years ago

操作流程具体是什么样的?

dong-lufei commented 2 years ago

我用你们CLI创建一个项目: PS E:\test> npm init rax rax_demo Current registry: https://registry.npmmirror.com npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

changed 252 packages in 43s ? What's your project type? App (Build universal application) ? What's your application type? 小程序跨端应用 ? What type of language do you want to use? JavaScript Creating a new Rax project in E:\test\rax-demo download tarballURL https://registry.npmmirror.com/@rax-materials/scaffolds-app-js/-/scaffolds-app-js-0.4.7.tgz ✔ download npm tarball successfully. clean package.json... To run your app: cd rax-demo npm install npm start We have prepared develop toolkit for you. See: https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks PS E:\test> cd rax-demo

为什么搭建的项目需要的依赖包不是最新版本,且依赖包更新命令也不提示可以更新? 例子:package.json文件里依赖包 "rax-app": "^3.8.7",为什么不是最新版的3.8.18, 而我用检查项目依赖包更新命令(用了3种命令比如npm-check)也不提示这几个包更新,但别的包却提示了更新比如:stylelint。

以下这些包都没提示更新 好像更新命令也更新不了,只能通过卸载包npm remove rax-document再装npm i rax-document间接实现更新: rax-app、rax、rax-document、rax-image、rax-link、rax-text、rax-view

SoloJiang commented 2 years ago
  1. rax-app: ^3.8.7 根据 sermer version 规范会安装最新的 v3.8.18 版本
  2. 具体检查是不是安装的最新版本,可以在 node_modules 里看,或者用 npm ls rax-document 查询