stats icon indicating copy to clipboard operation
stats copied to clipboard

npm version crashes

Open bugs181 opened this issue 10 years ago • 0 comments

Installed module from npm and it crashes regardless of what opts I try.

Install:

$ npm install -g stats

Run:

$ stats --totals dirName

/usr/local/lib/node_modules/stats/lib/parser.js:249
if (!options.ignoreParseErrors) throw err;  
                                      ^
SyntaxError: Unexpected token name, expected punc on line 104:22:
    '  for (routeContainer of routes) {'
    at Object.module.exports [as parse] (/usr/local/lib/node_modules/stats/lib/parser.js:244:11)

Versions:

$ npm -v
2.11.1

$ node -v  /  iojs -v
v2.3.0

OS:

Mac OS X 10.10.1

bugs181 avatar Jun 24 '15 23:06 bugs181