cnpm install -g remix-ide 始终无法成功安装,怎么解决? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
chinatreeqy
V2EX    Node.js

cnpm install -g remix-ide 始终无法成功安装,怎么解决?

  •  
  •   chinatreeqy 2018-08-10 15:06:18 +08:00 7642 次点击
    这是一个创建于 2633 天前的主题,其中的信息可能已经有所发展或是发生改变。
    λ cnpm install -g remix-ide
    Downloading remix-ide to C:\Users\wl\AppData\Roaming\npm\node_modules\remix-ide_tmp
    Copying C:\Users\wl\AppData\Roaming\npm\node_modules\remix-ide_tmp\[email protected]@remix-ide to C:\Users\wl\AppD
    ata\Roaming\npm\node_modules\remix-ide
    Installing remix-ide's dependencies to C:\Users\wl\AppData\Roaming\npm\node_modules\remix-ide/node_modules
    [remixd@git+https://github.com/ethereum/remixd.git] install remixd from git git+https://github.com/ethereum/remixd.git, may be very slow, please keep patience
    [1/2] [email protected] installed at node_modules\[email protected]@http-server
    [email protected] download from binary mirror: {"module_name":"fse","module_path":"./lib/binding/{configuration}/{node_abi}-{platform}-{arch}/","remote_path":"./v{version}/","package_name":"{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz","host":"https://cdn.npm.taobao.org/dist/fsevents"}
    platform unsupported [email protected] [email protected] fsevents@^1.2.2 Package require os(darwin) not compatible with your platform(win32)
    [fsevents@^1.2.2] optional install error: Package require os(darwin) not compatible with your platform(win32)
    [[email protected] [email protected] [email protected] [email protected] [email protected] websocket@git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible] install websocket from git git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible, may be very slow, please keep patience
    scripts.preinstall [email protected] [email protected] [email protected] [email protected] [email protected] scrypt@^6.0.2 "node node-scrypt-preinstall.js"
    [2/2] remixd@git+https://github.com/ethereum/remixd.git installed at node_modules\[email protected]@remixd
    execute post install 3 scripts...
    [1/3] scripts.install [email protected] websocket@^1.0.24 run "(node-gyp rebuild 2> builderror.log) || (exit 0)"

    C:\Users\wl\AppData\Roaming\npm\node_modules\remix-ide\node_modules\[email protected]@websocket>node "C:\Users\wl\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\\node-gyp.js" rebuild
    [1/3] scripts.install [email protected] websocket@^1.0.24 finished in 841ms
    [2/3] scripts.install [email protected] [email protected] [email protected] [email protected] [email protected] scrypt@^6.0.2 run "node-gyp rebuild"

    C:\Users\wl\AppData\Roaming\npm\node_modules\remix-ide\node_modules\[email protected]@scrypt>node "C:\Users\wl\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\node-gyp-bin\\node-gyp.js" rebuild
    gyp ERR! configure error
    gyp ERR! stack Error: Command failed: C:\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
    gyp ERR! stack File "<string>", line 1
    gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
    gyp ERR! stack ^
    gyp ERR! stack SyntaxError: invalid syntax
    gyp ERR! stack
    gyp ERR! stack at ChildProcess.exithandler (child_process.js:288:12)
    gyp ERR! stack at ChildProcess.emit (events.js:182:13)
    gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:249:5)
    gyp ERR! System Windows_NT 6.1.7601
    gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "C:\\Users\\wl\\AppData\\Roaming\\npm\\node_modules\\cnpm\\node_modules\\npminstall\\node-gyp-bin\\node-gyp.js" "rebuild"
    gyp ERR! cwd C:\Users\wl\AppData\Roaming\npm\node_modules\remix-ide\node_modules\[email protected]@scrypt
    gyp ERR! node -v v10.8.0
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok
    Install fail! Error: post install error, please remove node_modules before retry!
    Run "C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1
    Error: post install error, please remove node_modules before retry!
    Run "C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1
    at ChildProcess.proc.on.code (C:\Users\wl\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:74:21)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:249:5)
    npminstall version: 3.11.0
    npminstall args: D:\Program Files\nodejs\node.exe C:\Users\wl\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --usercOnfig=C:\Users\wl\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org -g remix-ide
    1 条回复    2018-08-26 10:45:13 +08:00
    h3n6Qx2UB9a4g477
        1
    h3n6Qx2UB9a4g477  
       2018-08-26 10:45:13 +08:00
    安装个 python 2 吧
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2349 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 23ms UTC 10:56 PVG 18:56 LAX 03:56 JFK 06:56
    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