Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatibility problems with Node.js v14.3.0 #4321

Closed
yanhuacuo opened this issue May 20, 2020 · 13 comments
Closed

compatibility problems with Node.js v14.3.0 #4321

yanhuacuo opened this issue May 20, 2020 · 13 comments
Labels
duplicate This issue or pull request already exists

Comments

@yanhuacuo
Copy link

I have these problems in Ubuntu 20.04 LTS

$ node -v
v14.3.0

and this is the version of my hexo

$ hexo -v
(node:35237) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:35237) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:35237) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:35237) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:35237) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:35237) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
hexo: 4.2.1
hexo-cli: 3.1.0
os: Linux 5.4.0-31-generic linux x64
node: 14.3.0
v8: 8.1.307.31-node.33
uv: 1.37.0
zlib: 1.2.11
brotli: 1.0.7
ares: 1.16.0
modules: 83
nghttp2: 1.40.0
napi: 6
llhttp: 2.0.4
openssl: 1.1.1g
cldr: 37.0
icu: 67.1
tz: 2019c
unicode: 13.0
@yanhuacuo
Copy link
Author

$ npm fund
hexo-site@0.0.0
├─┬ https://opencollective.com/hexo
│ └── hexo@4.2.1
├─┬ https://github.com/sponsors/ljharb
│ └── resolve@1.17.0
├─┬ https://github.com/chalk/ansi-styles?sponsor=1
│ └── ansi-styles@4.2.1
├─┬ https://github.com/sponsors/jonschlinkert
│ └── picomatch@2.2.2
└─┬ https://github.com/sponsors/isaacs
  └── glob@7.1.6

@yanhuacuo
Copy link
Author

$ hexo server
(node:32081) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:32081) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:32081) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:32081) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:32081) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:32081) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
INFO  Start processing
INFO  Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.

@yanhuacuo
Copy link
Author

yanhuacuo commented May 20, 2020

$ npm audit fix
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

up to date in 0.824s

5 packages are looking for funding
  run `npm fund` for details

fixed 0 of 1 vulnerability in 254 scanned packages
  1 vulnerability required manual review and could not be updated

@jiangtj
Copy link
Member

jiangtj commented May 20, 2020

So what problem did you encounter?
Of course, you can take a look at #4260, about node v14 compatibility.

@yanhuacuo
Copy link
Author

yanhuacuo commented May 20, 2020

So sadly,i back to node.js v14.2.0
the problems are all the same

@yanhuacuo
Copy link
Author

So what problem did you encounter?
Of course, you can take a look at #4260, about node v14 compatibility.

yes ,i have read that page, but it is useless

@yanhuacuo
Copy link
Author

now ,i rebuild hexo from source with this commit

:956242e

and , this mistake still exists

@yanhuacuo
Copy link
Author

yanhuacuo commented May 20, 2020

$ hexo -v
hexo-cli: 3.1.0
os: Linux 5.4.0-31-generic linux x64
node: 14.2.0
v8: 8.1.307.31-node.33
uv: 1.37.0
zlib: 1.2.11
brotli: 1.0.7
ares: 1.16.0
modules: 83
nghttp2: 1.40.0
napi: 6
llhttp: 2.0.4
openssl: 1.1.1g
cldr: 36.1
icu: 66.1
tz: 2019c
unicode: 13.0

@jiangtj
Copy link
Member

jiangtj commented May 20, 2020

Are you asking the "circular dependency" issue?

#4260 (comment)
#4257

This is caused by stylus, we need to wait for them to fix.

@yanhuacuo
Copy link
Author

Are you asking the "circular dependency" issue?

#4260 (comment)
#4257

This is caused by stylus, we need to wait for them to fix.

these caused by stylus indeed,now,what should we do ?

they're annoying :(

@SukkaW
Copy link
Member

SukkaW commented May 20, 2020

@yanhuacuo

these caused by stylus indeed,now,what should we do ?

Nothing. Only wait for stylus to fix it.

@yanhuacuo
Copy link
Author

for these issues ,the hexo d will be failed

$ hexo d
(node:5496) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:5496) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:5496) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:5496) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:5496) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:5496) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
TypeError [ERR_INVALID_ARG_TYPE]: The "mode" argument must be integer. Received an instance of Object
    at copyFile (fs.js:1890:10)
    at tryCatcher (/home/i5/文档/blog/node_modules/bluebird/js/release/util.js:16:23)
    at ret (eval at makeNodePromisifiedEval (/usr/local/lib/node_modules/hexo-cli/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
    at /home/i5/文档/blog/node_modules/hexo-fs/lib/fs.js:144:39
    at tryCatcher (/home/i5/文档/blog/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:729:18)
    at Promise._fulfill (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:673:18)
    at Promise._resolveCallback (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:466:57)
    at Promise._settlePromiseFromHandler (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:559:17)
    at Promise._settlePromise (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:729:18)
    at Promise._fulfill (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:673:18)
    at Promise._resolveCallback (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:466:57)
    at Promise._settlePromiseFromHandler (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:559:17)
    at Promise._settlePromise (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:729:18)
    at Promise._fulfill (/home/i5/文档/blog/node_modules/bluebird/js/release/promise.js:673:18)

@yoshinorin
Copy link
Member

@yanhuacuo
Please see #4281 (comment)

@yoshinorin yoshinorin added the duplicate This issue or pull request already exists label May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants