- 报这种:
gyp verb check python checking for Python executable “python2” in the PATH
gyp verbwhich
failed Error: not found: python2
需要安装python2.7,注意python3.x没用。
https://blog.csdn.net/zzfenglin/article/details/52336440
2.gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
解决:npm install -g node-gyp
3.报这种:
Module build failed: Error: Missing binding C:\Users\Administrator\Desktop\新建文件夹\mall\node_modules\node-sass\vendor\win32-x64-64\binding.node
解决:npm i node-sass