sclswin

1065 经验值

windows7 64bit python 3.6
用npm安装node-sass正常安装,但是使用yarn安装的时候总是提示python命令找不到 让检查环境变量PATH,但是这个路径下python是存在的 直接复制C:Python36python.EXE 在也可以正常运行起

环境变量也是有的
直接运行python也可以运行起
[4/4] Building fresh packages...
[1/1] node-sass: gyp verb could not find "C:Python36python.EXE". checking python launcher
[-/1] waiting...
[-/1] waiting...
[-/1] waiting...
error D:phpStudyWWWlaraveldemonode_modulesnode-sass: Command failed.
Exit code: 1

Command: C:Windowssystem32cmd.exe
Arguments: /d /s /c node scripts/build.js
Directory: D:phpStudyWWWlaraveldemonode_modulesnode-sass
Output:
Binary found at D:phpStudyWWWlaraveldemonode_modulesnode-sassvendorwin32-x64-48binding.node
Testing binary
Binary has a problem: Error: %1 is not a valid Win32 application.