CUsersadminDesktopmall-cook-shelfmall-cook-shelfnode_modulesnode-sass Command failedExit code 1Command node scriptsbuildjsArguments Directory CUsersadminDesktopmall-cook-shelfmall-cook-shelfnode_modul
The error message suggests that the command "node scripts/build.js" failed with exit code 1. The output indicates that there is an issue with the node-sass module.
The error message states that Python executable "python2" cannot be found. It then checks for "python" and encounters the same issue. It suggests setting the PYTHON environment variable.
To resolve this issue, you can try the following steps:
-
Make sure Python is installed on your system. You can download and install Python from the official website (https://www.python.org/downloads/). Note the installation path.
-
Set the PYTHON environment variable. Open the System Properties window by right-clicking on the Computer icon, selecting Properties, and then clicking on "Advanced system settings" on the left-hand side. In the System Properties window, click on the "Environment Variables" button. In the "System variables" section, click on "New" to create a new variable. Set the variable name as "PYTHON" and the variable value as the installation path of Python (e.g., C:\Python27\python.exe).
-
Restart your computer to ensure the environment variable changes take effect.
-
Try running the command again and see if the issue is resolved.
If the issue persists, you may need to check your node-sass version compatibility with your Node.js version or consider updating your dependencies
原文地址: https://www.cveoy.top/t/topic/ivZ6 著作权归作者所有。请勿转载和采集!