MacBook M1andtaro

Error: YarnDev: H5 error: YarnDev: H5

## There is an issue with `node-fibers` ##
`/node_modules/fibers/bin/darwin-arm64-88/fibers.node` is missing.

Try running this to fix the issue: .nvm/versions/node/v15.5.0/bin/node /node_modules/fibers/build
Error: Cannot find module 'node_modules/fibers/bin/darwin-arm64-88/fibers'
Copy the code

Looking for a long time didn’t find a solution, know to find a similar problem: www.jianshu.com/p/145015d72…

The solution

My environment is as follows: Node: v15.14.0 taro- CLI: v3.2.8

First look at the error message:

## There is an issue with `node-fibers` ##
`/node_modules/fibers/bin/darwin-arm64-88/fibers.node` is missing.

Try running this to fix the issue: .nvm/versions/node/v15.14.0/bin/node /node_modules/fibers/build
Error: Cannot find module 'node_modules/fibers/bin/darwin-arm64-88/fibers'
Copy the code

Perform/Users/XXX /. NVM/versions/node/v15.14.0 / bin/node/Users / / XXX XXX/node_modules/fibers/build could not find the Darwin fibers – arm64-88

  1. Execute in the project directoryfind . -name fibers.node, to see if the output path is availabledarwin-arm64-88If not, proceed to Step 2
  2. Do this manually in the project directory/ Users/XXX/NVM/versions/node/v15.14.0 / bin/node/Users / / XXX XXX/node_modules/fibers/build, output promptnode-gyp not found! Please ensure node-gyp is in your PATH--
  3. performnpm install -g node-gypThe installationnode-gyp
  4. Performed again/ Users/XXX/NVM/versions/node/v15.14.0 / bin/node/Users / / XXX XXX/node_modules/fibers/build, an error is reportedbinding.gyp not found
  5. Execute in project directoryfind . -name binding.gyp, you’ll findnode_modules/fibers/binding.gypThis file exists in the project
  6. Item directorycd node_modules/fibersAnd then execute it again/ Users/XXX/NVM/versions/node/v15.14.0 / bin/node/Users / / XXX XXX/node_modules/fibers/buildIf nothing goes wrong, it should compile at this point.
  7. thencd .. /.., the implementation ofyarn dev:h5Successfully started.