Skip to content

Docular Error: Error: EPERM: operation not permitted, #148

@PJEstrada

Description

@PJEstrada

I´m getting this error when trying to run grunt. I am on Windows 10 with the cmd in admin mode.

Running "docular" task                                                                                                                                      
(node:18260) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.  
(node:18260) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.  
Loading individual files for gid: Base                                                                                                                      
Loading individual files for gid: loopback                                                                                                                  
Loading individual files for gid: lbServices                                                                                                                
Parsing files for gid:  Base                                                                                                                                
Parsing files for gid:  loopback                                                                                                                            
Parsing files for gid:  lbServices                                                                                                                          
Backfilling file data for gid:  Base                                                                                                                        
Backfilling file data for gid:  loopback                                                                                                                    
Backfilling file data for gid:  lbServices                                                                                                                  
Creating docs from for gid:  Base                                                                                                                           
Creating docs from for gid:  loopback                                                                                                                       
Creating docs from for gid:  lbServices                                                                                                                     
Error: EPERM: operation not permitted, open 'docular_generated\sources\lb-services.js'             
  at Error (native)                                                                                                                                         
  at Object.fs.openSync (fs.js:634:18)                                                                                                                      
  at copyFileSync (node_modules\fs-extra\lib\copy-sync\copy-file-sync.js:21:16)                    
  at Object.copySync (node_modules\fs-extra\lib\copy-sync\copy-sync.js:32:7)                       
  at .<anonymous> (node_modules\docular\lib\scripts\core\generator.js:132:25)                      
  at _combinedTickCallback (internal/process/next_tick.js:67:7)                                                                                             
  at process._tickDomainCallback (internal/process/next_tick.js:122:9)                                                                                      
  at process.fallback (C:\Users\pablo\Dropbox\Nozzmo\Reuniones\exeboard\backend\node_modules\async-listener\index.js:450:15)                                
From previous event:                                                                                                                                        
  at Group.extend.exportDocFiles (node_modules\docular\lib\scripts\core\generator.js:123:25)       
  at _combinedTickCallback (internal/process/next_tick.js:67:7)                                                                                             
  at process._tickDomainCallback (internal/process/next_tick.js:122:9)                                                                                      
  at process.fallback (node_modules\async-listener\index.js:450:15)                                
{ Error: EPERM: operation not permitted, open 'docular_generated\sources\lb-services.js'           
  at Error (native)                                                                                                                                         
  at Object.fs.openSync (fs.js:634:18)                                                                                                                      
  at copyFileSync (node_modules\fs-extra\lib\copy-sync\copy-file-sync.js:21:16)                    
  at Object.copySync (node_modules\fs-extra\lib\copy-sync\copy-sync.js:32:7)                       
  at .<anonymous> (node_modules\docular\lib\scripts\core\generator.js:132:25)                      
  at _combinedTickCallback (internal/process/next_tick.js:67:7)                                                                                             
  at process._tickDomainCallback (internal/process/next_tick.js:122:9)                                                                                      
  at process.fallback (node_modules\async-listener\index.js:450:15)                                
From previous event:                                                                                                                                        
  at Group.extend.exportDocFiles (node_modules\docular\lib\scripts\core\generator.js:123:25)       
  at _combinedTickCallback (internal/process/next_tick.js:67:7)                                                                                             
  at process._tickDomainCallback (internal/process/next_tick.js:122:9)                                                                                      
  at process.fallback (node_modules\async-listener\index.js:450:15)                                
  errno: -4048,                                                                                                                                             
  code: 'EPERM',                                                                                                                                            
  syscall: 'open',                                                                                                                                          
  path: 'docular_generated\\sources\\lb-services.js' }                                     
Warning: Task "docular" failed. Use --force to continue.                                                                                                    

Aborted due to warnings.    

This is my gruntfile:

module.exports = function(grunt) {
    grunt.loadNpmTasks('grunt-loopback-sdk-angular');
    grunt.loadNpmTasks('grunt-docular');

    // Project configuration.
    grunt.initConfig({
      loopback_sdk_angular: {
        services: {
          options: {
            input: 'server/server.js',
            output: 'lb-services.js'
          }
        }
      },
      docular: {
        groups: [
          {
            groupTitle: 'LoopBack',
            groupId: 'loopback',
            sections: [
              {
                id: 'lbServices',
                title: 'LoopBack Services',
                scripts: [ 'lb-services.js' ]
              }
            ]
          }
        ]
      },
      pkg: grunt.file.readJSON('package.json'),
      uglify: {
        options: {
          banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
        },
        build: {
          src: 'src/<%= pkg.name %>.js',
          dest: 'build/<%= pkg.name %>.min.js'
        }
      }
    });
    grunt.loadNpmTasks('grunt-contrib-jshint');
    // Load the plugin that provides the "uglify" task.
    grunt.loadNpmTasks('grunt-contrib-uglify');


    grunt.registerTask('default', [

      'loopback_sdk_angular', 'docular', // newly added
      'uglify']);



};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions