error: device not found_Error: Cannot find module '...bin\yarn.js'

2b801c2e2091a15c3b9a8eb75acc0d9e.png

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: []
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值