V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xoboy
V2EX  ›  问与答

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

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

    $ 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=auto',
    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.exe▒▒▒▒Ҫ▒▒▒▒▒▒▒▒⣬1) ▒▒װ .NET Framework 2.0 SDK▒▒2) ▒▒װ 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▒▒(Ĭ▒▒Ŀ▒▒)▒IJ▒▒▒ - ʧ▒ܡ▒

    ▒▒▒▒ʧ▒ܡ▒

    ▒▒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.exe▒▒▒▒Ҫ▒▒▒▒▒▒▒▒⣬1) ▒▒װ .NET Framework 2.0 SDK▒▒2) ▒▒װ 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  
       2016-03-03 15:23:36 +08:00
    xoboy
        2
    xoboy  
    OP
       2016-03-03 15:47:47 +08:00
    @Tiande 谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2852 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 07:57 · PVG 15:57 · LAX 23:57 · JFK 02:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.