gyp info it worked if it ends with ok
gyp verb cli [ 'F:\\node.exe',
gyp verb cli 'F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_node-gyp@3.6.2@node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using node-gyp@3.6.2
gyp info using node@8.2.1 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb download using dist-url https://npm.taobao.org/mirrors/node
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_which@1.3.0@which\which.js:13:
12)
gyp verb `which` failed at F (F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_which@1.3.0@which\which.js:68:19)
gyp verb `which` failed at E (F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_which@1.3.0@which\which.js:80:29)
gyp verb `which` failed at F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_which@1.3.0@which\which.js:89:16
gyp verb `which` failed at F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_isexe@2.0.0@isexe\index.js:42:5
gyp verb `which` failed at F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_isexe@2.0.0@isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_which@1.3.0@which\which.js:13:
12)
gyp verb `which` failed at F (F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_which@1.3.0@which\which.js:68:19)
gyp verb `which` failed at E (F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_which@1.3.0@which\which.js:80:29)
gyp verb `which` failed at F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_which@1.3.0@which\which.js:89:16
gyp verb `which` failed at F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_isexe@2.0.0@isexe\index.js:42:5
gyp verb `which` failed at F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_isexe@2.0.0@isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed stack: 'Error: not found: python2\n at getNotFoundError (F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\n
ode_modules\\_which@1.3.0@which\\which.js:13:12)\n at F (F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_which@1.3.0@
which\\which.js:68:19)\n at E (F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_which@1.3.0@which\\which.js:80:29)\n
at F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_which@1.3.0@which\\which.js:89:16\n at F:\\sxt\\Stage4\\react\\r
eact-pxq-master\\pxq\\node_modules\\_isexe@2.0.0@isexe\\index.js:42:5\n at F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modu
les\\_isexe@2.0.0@isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Python27\python.EXE
gyp verb check python version `C:\Python27\python.EXE -c "import platform; print(platform.python_version());"` returned: "2.7.13\r\n"
gyp verb get node dir no --target version specified, falling back to host node version: 8.2.1
gyp verb command install [ '8.2.1' ]
gyp verb download using dist-url https://npm.taobao.org/mirrors/node
gyp verb install input version string "8.2.1"
gyp verb install installing version: 8.2.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 8.2.1
gyp verb build dir attempting to create "build" dir: F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@node-sass\
build
gyp verb build dir "build" dir needed to be created? F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@node-sass\
build
gyp verb Not using VS2017: Could not use PowerShell to find VS2017
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@node-sass\b
uild\config.gypi
gyp verb config.gypi checking for gypi file: F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@node-sass\config.g
ypi
gyp verb common.gypi checking for gypi file: F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@node-sass\common.g
ypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_node-gyp@3.6.2@node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_node-sass@4.5.3@node-sass\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_node-gyp@3.6.2@node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\zhongbin\\.node-gyp\\8.2.1\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\zhongbin\\.node-gyp\\8.2.1',
gyp info spawn args '-Dnode_gyp_dir=F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_node-gyp@3.6.2@node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\zhongbin\\.node-gyp\\8.2.1\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_node-sass@4.5.3@node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_node-sass@4.5.3@node-sass\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb download using dist-url https://npm.taobao.org/mirrors/node
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\zhongbin\.node-gyp\8.2.1
gyp verb found first Solution file build/binding.sln
gyp verb could not find "msbuild.exe" in PATH - finding location in registry
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
生成启动时间为 2017/8/31 21:23:31。
节点 1 上的项目“F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@node-sass\build\binding.sln”(默认目标)。
ValidateSolutionConfiguration:
正在生成解决方案配置“Release|x64”。
MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装 .NET Framework 2.0 SDK;2) 安装 Microsoft Visu
al Studio 2005;或 3)
如果将该组件安装到了其他位置,请将其位置添加到系统路径中。 [F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@nod
e-sass\build\binding.sln]
已完成生成项目“F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@node-sass\build\binding.sln”(默认目标)的操作 -
失败。
生成失败。
“F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@node-sass\build\binding.sln”(默认目标) (1) ->
(_src_\libsass 目标) ->
MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装 .NET Framework 2.0 SDK;2) 安装 Microsoft Vi
sual Studio 2005;或 3
) 如果将该组件安装到了其他位置,请将其位置添加到系统路径中。 [F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@n
ode-sass\build\binding.sln]
0 个警告
1 个错误
已用时间 00:00:00.13
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-gyp@3.6.2@node-gyp\lib\build.js
:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "F:\\node.exe" "F:\\sxt\\Stage4\\react\\react-pxq-master\\pxq\\node_modules\\_node-gyp@3.6.2@node-gyp\\bin\\node-gyp.
js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd F:\sxt\Stage4\react\react-pxq-master\pxq\node_modules\_node-sass@4.5.3@node-sass
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
× Install fail! Error: post install error, please remove node_modules before retry!
Run "C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js" error, exit code 1
Error: post install error, please remove node_modules before retry!
Run "C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js" error, exit code 1
at ChildProcess.proc.on.code (C:\Users\zhongbin\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:65:21)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:921:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
npminstall version: 3.0.1
npminstall args: F:\node.exe C:\Users\zhongbin\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --china --
userconfig=C:\Users\zhongbin\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=http://registry.npm.taobao.org
错误提示给了解决方案,照着做下啊。。。