You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jano Svitok (Jira)" <ji...@apache.org> on 2020/03/07 20:37:00 UTC

[jira] [Commented] (THRIFT-5120) TypeError: fs.copyFileSync is not a function

    [ https://issues.apache.org/jira/browse/THRIFT-5120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17054197#comment-17054197 ] 

Jano Svitok commented on THRIFT-5120:
-------------------------------------

From the log:
---------------------
Pre-installed Node.js versions
v4.8.6
v6.12.0
v6.12.1
v8.9
v8.9.1

PATH=/home/travis/bin:/home/travis/.local/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.*nvm/versions/node/v8.9.1/bin*:/home/travis/.kiex/elixirs/elixir-1.4.5/bin:/home/travis/.kiex/bin:/home/travis/.rvm/gems/ruby-2.4.1/bin:/home/travis/.rvm/gems/ruby-2.4.1@global/bin:/home/travis/.rvm/rubies/ruby-2.4.1/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.7.4.linux.amd64/bin:/usr/local/phantomjs/bin:/usr/local/phantomjs:/usr/local/neo4j-3.2.7/bin:/usr/local/maven-3.5.2/bin:/usr/local/cmake-3.9.2/bin:/usr/local/clang-5.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin

NodeJS Library:
   Using NodeJS .............. : /usr/bin/nodejs
   Using NodeJS version....... : v6.17.1
---------------------

package.json:
---------------------
    "jsdoc": "^3.6.3",
---------------------

https://github.com/jsdoc/jsdoc/issues/1671 :
---------------------
In the screenshot you provided, the path to lib\jsdoc\fs.js includes the string nodev6. That makes me wonder if you're trying to run JSDoc with Node.js 6.x, not 10.15.3.

If so, that would explain the error, because fs.copyFileSync() was added in Node.js 8.5.0. That's one reason why JSDoc 3.6.3 requires Node.js >=8.15.0.
---------------------


> TypeError: fs.copyFileSync is not a function
> --------------------------------------------
>
>                 Key: THRIFT-5120
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5120
>             Project: Thrift
>          Issue Type: Bug
>          Components: JavaScript - Library
>            Reporter: Jens Geyer
>            Priority: Blocker
>
> Blocker because it breaks CI



--
This message was sent by Atlassian Jira
(v8.3.4#803005)