wepy 使用 npm 无法安装

kse8i1jr  于 2022-10-20  发布在  其他
关注(0)|答案(4)|浏览(335)

Description

问题描述:nodejs版本14.15.3 , npm版本6.14.9 ,无法安装wepy。
以下重新安装之间已删除下载的文件和缓存。

错误如下:

使用 npm install @wepy/cli -g
PS C:\Windows\System32> npm install @wepy/cli -g
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated fsevents@2.1.3: Please update to v 2.2.x
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated request@2.88.0: request has been deprecated, see request/request#3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated smartwrap@1.2.5: Backported compatibility to node > 6
C:\Program Files\nodejs\node_global\wepy -> C:\Program Files\nodejs\node_global\node_modules@wepy\cli\bin\wepy.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules@wepy\cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup Unsupported engine for got@5.7.1: wanted: {"node":">=0.10.0 <7"} (current: {"node":"14.15.3","npm":"6.14.9"})
npm WARN notsup Not compatible with your version of node/npm: got@5.7.1

  • @wepy/cli@2.1.0

added 487 packages from 384 contributors in 663.923s

使用 npm install wepy-cli -g

PS C:\Windows\System32> npm install wepy-cli -g
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated smartwrap@1.2.5: Backported compatibility to node > 6
C:\Program Files\nodejs\node_global\wepy -> C:\Program Files\nodejs\node_global\node_modules\wepy-cli\bin\wepy.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\wepy-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup Unsupported engine for got@5.7.1: wanted: {"node":">=0.10.0 <7"} (current: {"node":"14.15.3","npm":"6.14.9"})
npm WARN notsup Not compatible with your version of node/npm: got@5.7.1

  • wepy-cli@1.7.3

added 545 packages from 312 contributors in 172.909s
PS C:\Windows\System32>

ahy6op9u

ahy6op9u1#

https://wepyjs.gitee.io/wepy-docs/2.x/#/base/getstart
npm i @wepy/cli -g

pjngdqdw

pjngdqdw2#

https://wepyjs.gitee.io/wepy-docs/2.x/#/base/getstart
npm i @wepy/cli -g

一开始就用的这个命令,失败

bvn4nwqk

bvn4nwqk3#

sudo npm install @wepy/cli -g

8dtrkrch

8dtrkrch4#

诶,有没有node npm 配套的说明啊

相关问题