yarn出现如下错误,求大神指教,小白;
Error: Cannot find module 'C:WindowsSystem32node_modulesyarnbinyarn.js'
Microsoft Windows [版本 10.0.18362.1082]
(c) 2019 Microsoft Corporation。保留所有权利。
C:Windowssystem32>npm install -g yrm
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated coffee-script@1.7.1: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
C:UserschenzAppDataRoamingnpmyrm -> C:UserschenzAppDataRoamingnpmnode_modulesyrmcli.js
+ yrm@1.0.6
added 323 packages from 563 contributors in 28.872s
C:Windowssystem32>npm install -g yarn
> yarn@1.22.10 preinstall C:UserschenzAppDataRoamingnpmnode_modulesyarn
> :; (node ./preinstall.js > /dev/null 2>&1 || true)
C:UserschenzAppDataRoamingnpmyarn -> C:UserschenzAppDataRoamingnpmnode_modulesyarnbinyarn.js
C:UserschenzAppDataRoamingnpmyarnpkg -> C:UserschenzAppDataRoamingnpmnode_modulesyarnbinyarn.js
+ yarn@1.22.10
added 1 package in 3.568s
C:Windowssystem32>yarn
internal/modules/cjs/loader.js:1068
throw err;
^
Error: Cannot find module 'C:WindowsSystem32node_modulesyarnbinyarn.js'
[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1065:15)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:911:27)[39m
[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)[39m
[90m at internal/main/run_main_module.js:17:47[39m {
code: [32m'MODULE_NOT_FOUND'[39m,
requireStack: []