1.没pakage.json
2.打开大文件夹下的子文件,报错
error D:\source\ff2022\lilivue\buyer\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:\source\ff2022\lilivue\buyer\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe D:\source\ff2022\lilivue\buyer\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
添加windows下Node的编译环境,之后安装node-sass后报错
https://blog.youkuaiyun.com/luxiangy1314/article/details/105719772
3.
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (D:\source\ff2022\lilivue\buyer\node_modules\vue-piczoom\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (D:\source\ff2022\lilivue\buyer\node_modules\vue-piczoom\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at callback (D:\source\ff2022\lilivue\buyer\node_modules\graceful-fs\polyfills.js:295:20)
gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\source\\ff2022\\lilivue\\buyer\\node_modules\\vue-piczoom\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\source\ff2022\lilivue\buyer\node_modules\vue-piczoom\node_modules\node-sass
gyp ERR! node -v v16.14.0
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.