安装 npm install hexo-renderer-sass --save 出错,有什么办法没 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xoboy
V2EX    问与答

安装 npm install hexo-renderer-sass --save 出错,有什么办法没

  •  
  •   xoboy 2016-03-03 15:22:05 +08:00 13797 次点击
    这是一个创建于 3560 天前的主题,其中的信息可能已经有所发展或是发生改变。

    $ npm install hexo-renderer-sass --save
    npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
    npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
    npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.

    [email protected] postinstall E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\cross-spawn\node_modules\spawn-sync
    node postinstall

    [email protected] install E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass
    node scripts/install.js

    Cannot download "https://github.com/sass/node-sass/releases/download/v3.4.2/win32-x64-46_binding.node":

    connect ETIMEDOUT 54.231.18.169:443

    Hint: If github.com is not accessible in your location
    try setting a proxy via HTTP_PROXY, e.g.

    export HTTP_PROXY=http://example.com:1234 

    or configure npm proxy via

    npm config set proxy http://example.com:8080 

    [email protected] postinstall E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass
    node scripts/build.js

    Building: D:\Program Files\nodejs\node.exe E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
    gyp info it worked if it ends with ok
    gyp verb cli [ 'D:\Program Files\nodejs\node.exe',
    gyp verb cli 'E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\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 [email protected]
    gyp info using [email protected] | win32 | x64
    gyp verb command rebuild []
    gyp verb command clean []
    gyp verb clean removing "build" directory
    gyp verb command configure []
    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 F (E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:63:19)
    gyp verb which failed at E (E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:72:29)
    gyp verb which failed at E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\which.js:81:16
    gyp verb which failed at E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\index.js:44:5
    gyp verb which failed at E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp\node_modules\which\node_modules\isexe\windows.js:29:5
    gyp verb which failed at FSReqWrap.oncomplete (fs.js:82:15)
    gyp verb which failed python2 [Error: not found: python2]
    gyp verb check python checking for Python executable "python" in the PATH
    gyp verb which succeeded python D:\Python27\python.EXE
    gyp verb check python version D:\Python27\python.EXE -c "import platform; print(platform.python_version());" returned: "2.7.11\r\n"
    gyp verb get node dir no --target version specified, falling back to host node version: 4.3.1
    gyp verb command install [ '4.3.1' ]
    gyp verb install input version string "4.3.1"
    gyp verb install installing version: 4.3.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: 4.3.1
    gyp verb build dir attempting to create "build" dir: E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\build
    gyp verb build dir "build" dir needed to be created? E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\build
    gyp verb build/config.gypi creating config file
    gyp verb build/config.gypi writing out config file: E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\build\config.gypi
    gyp verb config.gypi checking for gypi file: E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\config.gypi
    gyp verb common.gypi checking for gypi file: E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\common.gypi
    gyp verb gyp gyp format was not specified; forcing "msvs"
    gyp info spawn D:\Python27\python.EXE
    gyp info spawn args [ 'E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\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=auo',
    gyp info spawn args '-I',
    gyp info spawn args 'E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\build\config.gypi',
    gyp info spawn args '-I',
    gyp info spawn args 'E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp\addon.gypi',
    gyp info spawn args '-I',
    gyp info spawn args 'C:\Users\lr17q\.node-gyp\4.3.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\lr17q\.node-gyp\4.3.1',
    gyp info spawn args '-Dnode_gyp_dir=E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp',
    gyp info spawn args '-Dnode_lib_file=node.lib',
    gyp info spawn args '-Dmodule_root_dir=E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass',
    gyp info spawn args '--depth=.',
    gyp info spawn args '--no-parallel',
    gyp info spawn args '--generator-output',
    gyp info spawn args 'E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\build',
    gyp info spawn args '-Goutput_dir=.' ]
    gyp verb command build []
    gyp verb build type Release
    gyp verb architecture x64
    gyp verb node dev dir C:\Users\lr17q.node-gyp\4.3.1
    gyp verb found first Solution file build/binding.sln
    gyp verb could not find "msbuild.exe" in PATH - finding location in registry
    gyp verb "Release" dir needed to be created? null
    gyp verb copying "node.lib" for x64 C:\Users\lr17q.node-gyp\4.3.1\Release\node.lib
    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
    2016/3/3 15:21:00
    1 E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\build\binding.sln()
    ValidateSolutionConfiguration:
    áRelease|x64
    MSBUILD : error MSB3428: δ Visual C++ VCBuild.exe1) .NET Framework 2.0 SDK2) Microsoft Visual Studio 2005 3) λλС [E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\build\binding.sln]
    E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\build\binding.sln() -

    E:\LROYLE\AS3\Test\test\nodemodules\hexo-renderer-sass\node_modules\node-sass\build\binding.sln() (1) ->
    (_src
    \libsass ) ->
    MSBUILD : error MSB3428: δ Visual C++ VCBuild.exe1) .NET Framework 2.0 SDK2) Microsoft Visual Studio 2005 3) λλС [E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\build\binding.sln]

    0 1 

    00:00:01.71
    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 (E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp\lib\build.js:276:23)
    gyp ERR! stack at emitTwo (events.js:87:13)
    gyp ERR! stack at ChildProcess.emit (events.js:172:7)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
    gyp ERR! System Windows_NT 10.0.10586
    gyp ERR! command "D:\Program Files\nodejs\node.exe" "E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
    gyp ERR! cwd E:\LROYLE\AS3\Test\test\node_modules\hexo-renderer-sass\node_modules\node-sass
    gyp ERR! node -v v4.3.1
    gyp ERR! node-gyp -v v3.3.0
    gyp ERR! not ok
    Build failed
    npm ERR! Windows_NT 10.0.10586
    npm ERR! argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "hexo-renderer-sass" "--save"
    npm ERR! node v4.3.1
    npm ERR! npm v2.14.12
    npm ERR! code ELIFECYCLE

    npm ERR! [email protected] postinstall: node scripts/build.js
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
    npm ERR! This is most likely a problem with the node-sass package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR! node scripts/build.js
    npm ERR! You can get their info via:
    npm ERR! npm owner ls node-sass
    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:
    npm ERR! E:\LROYLE\AS3\Test\test\npm-debug.log

    2 条回复    2016-03-03 15:47:47 +08:00
    Tiande
        1
    Tiande  
    PRO
       2016-03-03 15:23:36 +08:00
    xoboy div class="fr">     2
    xoboy  
    OP
       2016-03-03 15:47:47 +08:00
    @Tiande 谢谢
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     1129 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 31ms UTC 23:34 PVG 07:34 LAX 15:34 JFK 18:34
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86