Error reporting phenomenon: When executing truffle unbox metacoin or truffle test , truffle will create a new temporary file under the appdata/local/temp folder under the user folder of the c drive, but my user name is with special symbols (xxx'xxx ) , resulting in the command not being able to find the temp folder, so creating a new file fails and cannot proceed further.
Solution: Modify the temp folder path
1. Open environment variables
2. Create a new folder on another disk, point the temp and tmp in the user variable to the newly created folder
Note: It is better not to give the user folder a special symbol or a Chinese name . This is a user created by someone else before.