Skip to content
This repository was archived by the owner on May 30, 2020. It is now read-only.
This repository was archived by the owner on May 30, 2020. It is now read-only.

Publish fails with Node 8.9.1 #111

Description

@xenobytezero

Our documentation build has started failing after a Node update (windows) to 8.9.1 from an old 6.x release.

fs.js:1910
  binding.copyFile(src, dest, flags);
          ^

Error: EPERM: operation not permitted, copyfile 'C:\Projects\app\client\node_modules\angular-jsdoc\angular-template\css\prettify-tomorrow.css' -> 'C:\Projects\app\Documentation\Client\JavaScript\css'
    at Object.fs.copyFileSync (fs.js:1910:11)
    at C:\Projects\app\client\node_modules\angular-jsdoc\angular-template\publish.js:85:10
    at Array.forEach (<anonymous>)
    at C:\Projects\app\client\node_modules\angular-jsdoc\angular-template\publish.js:82:17
    at Array.forEach (<anonymous>)
    at copyStaticFiles (C:\Projects\app\client\node_modules\angular-jsdoc\angular-template\publish.js:78:17)
    at Object.exports.publish (C:\Projects\app\client\node_modules\angular-jsdoc\angular-template\publish.js:300:3)
    at Object.module.exports.cli.generateDocs (C:\Projects\app\client\node_modules\jsdoc\cli.js:448:35)
    at Object.module.exports.cli.processParseResults (C:\Projects\app\client\node_modules\jsdoc\cli.js:399:20)
    at module.exports.cli.main (C:\Projects\app\client\node_modules\jsdoc\cli.js:240:14)
    at Object.module.exports.cli.runCommand (C:\Projects\app\client\node_modules\jsdoc\cli.js:189:5)
    at C:\Projects\app\client\node_modules\jsdoc\jsdoc.js:105:9
    at Object.<anonymous> (C:\Projects\app\client\node_modules\jsdoc\jsdoc.js:106:3)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)

Looking at documentation, fs.copyFileSync was added to the official fs module in 8.5.0, which I assume is overriding the fs.copyFileSync from jsdoc that is being used in publish.js

The official fs.copyFileSync does not allow a folder as the dest parameter, and will fail as a EPERM.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions