Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 纱线使用错误:如何在git bash上使用纱线_Node.js_Bash_Yarnpkg - Fatal编程技术网

Node.js 纱线使用错误:如何在git bash上使用纱线

Node.js 纱线使用错误:如何在git bash上使用纱线,node.js,bash,yarnpkg,Node.js,Bash,Yarnpkg,在npm安装了纱线依赖管理后,我在cmd版本0.21.3上获得了成功信息。 当我打开git bash以使用thread命令时,由于以下错误而失败: module.js:471 throw err; ^ Error: Cannot find module 'D:\c\Program Files (x86)\Yarn\bin\yarn.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Mo

在npm安装了纱线依赖管理后,我在cmd版本0.21.3上获得了成功信息。 当我打开git bash以使用thread命令时,由于以下错误而失败:

  module.js:471
    throw err;
    ^
Error: Cannot find module 'D:\c\Program Files (x86)\Yarn\bin\yarn.js'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3

尝试使用
npm link
命令创建指向
warn
模块的符号链接。您可以使用下面的命令

npm link yarn
之后,尝试在git bash中执行
warn
命令

希望这有帮助