anaisbetts / grunt-build-atom-shell

Grunt task to build Electron and rebuild node modules
MIT License
122 stars 11 forks source link

Get error when running build #6

Closed iamdriz closed 9 years ago

iamdriz commented 9 years ago

My Gruntfile.js looks like:

module.exports = function(grunt) {

    grunt.initConfig({
        'pkg': grunt.file.readJSON('package.json'),
        'build-atom-shell': {
            'tag': 'v0.19.5',
            'nodeVersion': '0.18.0',
            'buildDir': '/Users/cameron/atom-shell',
            'projectName': 'mycoolapp',
            'productName': 'MyCoolApp'
        }
    });

    grunt.loadNpmTasks('grunt-build-atom-shell');

    grunt.registerTask('default', ["build-atom-shell"]);

};

The following then happens:

Cameron:hello-world cameron$ grunt
Running "build-atom-shell" task
>> Traceback (most recent call last):
>>   File "script/bootstrap.py", line 119, in <module>
>>     sys.exit(main())
>>   File "script/bootstrap.py", line 24, in main
>>     update_node_modules('.')
>>   File "script/bootstrap.py", line 64, in update_node_modules
>>     execute([NPM, 'install'])
>>   File "/Users/cameron/atom-shell/atom-shell/script/lib/util.py", line 142, in execute
>>     raise e
>> subprocess.CalledProcessError: Command '['npm', 'install']' returned non-zero exit status 1
Warning: null Use --force to continue.

Aborted due to warnings.

What's wrong?

iamdriz commented 9 years ago

I've read some other issues here that the nodeVersion should be 0.20.0 (this makes no sense as there is no node version called that, so this is confusing). In any case, trying that also gives the above error!

anaisbetts commented 9 years ago

@iamdriz This should be fixed in the latest version 1.1.0, can you give it a try and reopen if it's still broken?