Record a pit where Node.js failed to build (/bin/sh: vite: no command found error Command failed with exit code 127.) Author: Chuwen Time: 2023-10-13 Classification: WEB development ##Troubleshooting After checking, it is found that the 'vite' package is not installed. Then I think that the 'vite' package is written in the 'devDependencies' list of the' package. json 'file Final view [yarn document]( https://classic.yarnpkg.com/lang/en/docs/cli/install/#toc -Yarn install production true false) found a configuration item: If the environment variable 'NODE_ENV' is set to 'production', the package in the 'devDependencies' list will be ignored Then I took a look at the pipeline environment variable configuration, and the environment variable 'NODE_ENV=production' was set as expected, which also confirmed why the prompt 'vite' command could not be found during the construction ##Solution Choose one of the following options ### 1. Remove NODE_ENV environment variable ### 2. When installing dependencies, append the '-- production=false' parameter Complete example: ` yarn install -- production=false` label: Vite