npm installation problem for angular seed template

33 views
Skip to first unread message

flora...@gmail.com

unread,
Sep 24, 2015, 10:00:15 AM9/24/15
to AngularJS
Hi all,

Im new to angularJS. I tried to download the angular phonecat project from https://github.com/angular/angular-phonecat but encounter error :(
Please help.

I have installed python(2.5.0), git(2.5.3), nodejs(4.1.1), npm(include in nodejs). The following is the log.

C:\angular-phonecat-master\node_modules\bufferutil>if
not defined npm_config_node_gyp (node "C:\npm\n
de_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" r
build )  else (node  rebuild )
Traceback (most recent call last):
  File "C:\npm\node_modules\npm\node_modules\no
e-gyp\gyp\gyp_main.py", line 11, in <module>
    import gyp
  File "C:\npm\node_modules\npm\node_modules\no
e-gyp\gyp\pylib\gyp\__init__.py", line 8, in <module>
    import gyp.input
  File "C:\npm\node_modules\npm\node_modules\no
e-gyp\gyp\pylib\gyp\input.py", line 883
    except ImportError as e:
                        ^
SyntaxError: invalid syntax
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\
npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:355:16)
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_proce
s.js:200:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.j
" "rebuild"
gyp ERR! cwd C:\angular-phonecat-master\node_modules\
ufferutil
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok
npm WARN install:bufferutil buffe...@1.1.0 install: `node-gyp rebuild`
npm WARN install:bufferutil Exit status 1

> utf-8-v...@1.1.0 install C:\angular-phonecat-ma
ter\node_modules\utf-8-validate
> node-gyp rebuild


Reply all
Reply to author
Forward
0 new messages