taro & Error: spawn taro ENOENT


taro & Error: spawn taro ENOENT

https://stackoverflow.com/questions/27688804/how-do-i-debug-error-spawn-enoent-on-node-js

node-cross-spawn

https://github.com/moxystudio/node-cross-spawn





https://github.com/NervJS/taro/issues/1221


bug


solution

https://nervjs.github.io/taro/docs/GETTING-STARTED.html#cli-工具安裝

install matched taro cli version

# yarn add package-name@x.x.x

$ yarn global add @tarojs/cli@1.3.34

taro cli

# install latest version
$ yarn global add @tarojs/cli

# install specific version

# $ yarn add package-name@x.x.x
$ yarn global add @tarojs/cli@1.3.34

CLI 工具安裝

# 首先,你需要使用 npm 或者 yarn 全局安裝@tarojs/cli,或者直接使用npx:

# 使用 npm 安裝 CLI
$ npm install -g @tarojs/cli

# 使用 yarn 安裝 CLI
$ yarn global add @tarojs/cli


# 注意事項
# 值得一提的是,如果安裝過程出現sass相關的安裝錯誤,請在安裝mirror-config-china后重試。

$ npm install -g mirror-config-china



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM