npm ERR! code 1 npm ERR! path D:\长安qms\qms_manage_ui\node_modules\node-sass npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js npm ERR! Building: D:\Nodejs\node.exe D:\长安qms\qms_manage_ui\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! gyp info it worked if it ends with ok npm ERR! gyp verb cli [
时间: 2023-08-03 22:04:15 浏览: 36
It seems like you're facing an error while running the command `npm install` or `npm run build` in your project. The error message indicates that there is an issue with the `node-sass` module.
To resolve this issue, you can try the following steps:
1. Clear the npm cache by running the command:
```
npm cache clean --force
```
2. Delete the `node_modules` folder by running the command:
```
rm -rf node_modules
```
or
```
rmdir /s /q node_modules
```
3. Install the `node-sass` module again by running the command:
```
npm install node-sass
```
4. Try running the build command again:
```
npm run build
```
If the issue persists, make sure you have all the necessary dependencies installed and that your environment is set up correctly.
Let me know if this helps!
相关推荐





