Skip to content

npm run build failing on Windows #7457

@davidreher

Description

@davidreher

Hey,

I did a fresh checkout of master today 75ae4a9 and tried to do a npm run build. I have the same issue on Windows 7 and Windows 10 (both x64).

Here is the log:

C:\dev\angular [master ≡]> npm run build

> angular-srcs@2.0.0-beta.8 build C:\dev\angular
> node --max-old-space-size=2048 ./node_modules/.bin/gulp build.js

C:\dev\angular\node_modules\.bin\gulp:4
case `uname` in
^^^^

SyntaxError: Unexpected token case
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:141:18)
    at node.js:933:3

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v5.7.1
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! angular-srcs@2.0.0-beta.8 build: `node --max-old-space-size=2048 ./node_modules/.bin/gulp build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-srcs@2.0.0-beta.8 build script 'node --max-old-space-size=2048 ./node_modules/.bin/gulp build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-srcs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node --max-old-space-size=2048 ./node_modules/.bin/gulp build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-srcs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-srcs
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\dev\angular\npm-debug.log

The complete log can be found here http://paste.ubuntu.com/15320322/

When doing a gulp build.js I am running out of disk space after quite some time (> 10GB are free before and afterwards)

Replacing the command with node --max-old-space-size=2048 ./node_modules/gulp/bin/gulp.js build.js does not fail immediately but I am running out of space again :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions