quasar框架npm run start提示sh: 1: quasar: not found

在尝试部署Quasar框架的项目时,遇到了在未安装Quasar的平台上运行的问题。由于当前Node.js版本过低(10.19.0),npm安装Quasar及相关依赖时显示不兼容警告。尽管如此,npm仍成功安装了Quasar,但警告表明一些依赖需要更高版本的Node.js(至少12.22.1)。为了正确运行项目,需要升级Node.js到推荐版本,并重新安装所有依赖。此外,还需要安装Quasar的peer dependencies,如vue和vue-router。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述

提示:这里描述具体问题:部署一个quasar框架,进行开发。

原因分析:

提示:这里填写问题的分析:这里填写该问题的具体解决方案:在一台从没有安过quasar的平台上跑项目,需要安装那些依赖完成quasar项目运行。


解决方案:

提示:
继续执行npm run start提示

sh: 1: quasar: not found

所以安装quasar

npm i -g @quasar/app

提示

npm WARN checkPermissions Missing write access to /usr/local/lib
npm WARN notsup Unsupported engine for @quasar/app@3.3.3: wanted: {"node":">= 12.22.1","npm":">= 6.14.12","yarn":">= 1.17.3"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @quasar/app@3.3.3
npm WARN notsup Unsupported engine for @quasar/ssr-helpers@2.1.1: wanted: {"node":">= 12.22.1"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @quasar/ssr-helpers@2.1.1
npm WARN notsup Unsupported engine for css-minimizer-webpack-plugin@3.4.1: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: css-minimizer-webpack-plugin@3.4.1
npm WARN notsup Unsupported engine for copy-webpack-plugin@10.2.4: wanted: {"node":">= 12.20.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: copy-webpack-plugin@10.2.4
npm WARN notsup Unsupported engine for compression-webpack-plugin@9.2.0: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: compression-webpack-plugin@9.2.0
npm WARN notsup Unsupported engine for fs-extra@10.0.0: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: fs-extra@10.0.0
npm WARN notsup Unsupported engine for open@8.4.0: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: open@8.4.0
npm WARN notsup Unsupported engine for postcss-loader@6.2.1: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: postcss-loader@6.2.1
npm WARN notsup Unsupported engine for postcss-rtlcss@3.5.2: wanted: {"node":">=12.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: postcss-rtlcss@3.5.2
npm WARN notsup Unsupported engine for sass-loader@12.4.0: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: sass-loader@12.4.0
npm WARN notsup Unsupported engine for ts-loader@9.2.6: wanted: {"node":">=12.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: ts-loader@9.2.6
npm WARN notsup Unsupported engine for webpack-dev-server@4.7.4: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: webpack-dev-server@4.7.4
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/@quasar/app/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN notsup Unsupported engine for schema-utils@4.0.0: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: schema-utils@4.0.0
npm WARN notsup Unsupported engine for schema-utils@4.0.0: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: schema-utils@4.0.0
npm WARN notsup Unsupported engine for globby@12.2.0: wanted: {"node":"^12.20.0 || ^14.13.1 || >=16.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: globby@12.2.0
npm WARN notsup Unsupported engine for array-union@3.0.1: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: array-union@3.0.1
npm WARN notsup Unsupported engine for slash@4.0.0: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: slash@4.0.0
npm WARN notsup Unsupported engine for schema-utils@4.0.0: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: schema-utils@4.0.0
npm WARN notsup Unsupported engine for html-minifier-terser@6.1.0: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: html-minifier-terser@6.1.0
npm WARN notsup Unsupported engine for commander@8.3.0: wanted: {"node":">= 12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: commander@8.3.0
npm WARN notsup Unsupported engine for schema-utils@4.0.0: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: schema-utils@4.0.0
npm WARN notsup Unsupported engine for http-proxy-middleware@2.0.6: wanted: {"node":">=12.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: http-proxy-middleware@2.0.6
npm WARN notsup Unsupported engine for strip-ansi@7.0.1: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: strip-ansi@7.0.1
npm WARN notsup Unsupported engine for webpack-dev-middleware@5.3.1: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: webpack-dev-middleware@5.3.1
npm WARN notsup Unsupported engine for ansi-regex@6.0.1: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: ansi-regex@6.0.1
npm WARN notsup Unsupported engine for schema-utils@4.0.0: wanted: {"node":">= 12.13.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: schema-utils@4.0.0
npm WARN @quasar/app@3.3.3 requires a peer of vue@^3.2.29 but none is installed. You must install peer dependencies yourself.
npm WARN @quasar/app@3.3.3 requires a peer of vue-router@^4.0.12 but none is installed. You must install peer dependencies yourself.

欢迎评论:

提示:欢迎大家在评论区讨论相关问题。
可以关注博主,我会持续更新工作中遇到的技术小砖头,供大家使用。
也可以在评论区告知好的小砖头或技术,我会收录。
还可以指出本博文错误,希望大家不吝赐教。

根据您提供的引用内容和,报错信息显示您正在尝试安装cnpm@9.2.0,但您的当前节点版本为12.22.12,不符合所需的最低节点版本14.18.0。因此,您收到了"npm WARN notsup Unsupported engine for cnpm@9.2.0: wanted: {"node":">= 14.18.0"} (current: {"node":"12.22.12","npm":"6.14.16"})"的警告信息。 此警告表明cnpm@9.2.0需要使用14.18.0或更高版本的节点。当前您正在使用的节点版本为12.22.12,与cnpm@9.2.0不兼容。导致这个问题的原因是您的节点版本太低,无法满足cnpm@9.2.0对节点版本的要求。 为了解决这个问题,您可以尝试升级您的节点版本到14.18.0或更高版本。在您升级节点版本之后,再次尝试安装cnpm@9.2.0,应该就不会再收到这个警告信息了。 另外,根据引用的提示信息,还可以看到在执行"npm run start"命令时,出现了"sh: 1: quasar: not found"的错误。这可能是因为您缺少quasar工具或quasar命令未正确安装。您可以尝试使用npm全局安装quasar,命令为"npm install -g quasar",然后再次运行"npm run start"命令。 总结: 1. 您收到了"npm WARN notsup Unsupported engine for cnpm@9.2.0: wanted: {"node":">= 14.18.0"} (current: {"node":"12.22.12","npm":"6.14.16"})"的警告信息,这是因为您的节点版本太低,无法满足cnpm@9.2.0对节点版本的要求。 2. 解决方法是升级节点版本到14.18.0或更高版本。 3. 另外,还要确保已正确安装了quasar工具,可以使用"npm install -g quasar"全局安装,然后再次运行"npm run start"命令。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [记录cnpm安装报错](https://blog.csdn.net/qq_37194189/article/details/130191502)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [quasar框架npm run start提示sh: 1: quasar: not found](https://blog.csdn.net/qq_28866895/article/details/124670206)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

前端小白到专家

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值