小编Wha*_*ive的帖子

如何将“纱线”更新到最新版本1.13.0?

我尝试了“ npm update yarn -g”和“ npm intall yarn -g”,但纱线版本仍为1.12.3。

我在一个空文件夹中运行该命令,请参见下文。谢谢。

Microsoft Windows [Version 10.0.17134.320]
(c) 2018 Microsoft Corporation. All rights reserved.

D:\test>dir
 Volume in drive D is D
 Volume Serial Number is 18E2-7E00

 Directory of D:\test

01/16/2019  10:38 PM    <DIR>          .
01/16/2019  10:38 PM    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  467,370,369,024 bytes free

D:\test>npm update yarn -g

D:\test>yarn -v
1.12.3

D:\test>npm install yarn -g
C:\Users\myuser\AppData\Roaming\npm\yarn -> C:\Users\myuser\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js
C:\Users\myuser\AppData\Roaming\npm\yarnpkg -> C:\Users\myuser\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js
+ yarn@1.13.0
updated 1 package in 0.469s

D:\test>yarn …
Run Code Online (Sandbox Code Playgroud)

node.js npm yarnpkg

7
推荐指数
2
解决办法
7271
查看次数

标签 统计

node.js ×1

npm ×1

yarnpkg ×1