Skip to content

TypeError: promisify is not a function #39

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

Closed
gps67 opened this issue Apr 15, 2018 · 1 comment
Closed

TypeError: promisify is not a function #39

gps67 opened this issue Apr 15, 2018 · 1 comment

Comments

@gps67
Copy link

gps67 commented Apr 15, 2018

sudo npm install -g vuepress
/usr/bin/vuepress -> /usr/lib/node_modules/vuepress/bin/vuepress.js
/usr/lib
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.2 (node_modules/vuepress/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

vuepress dev

TypeError: promisify is not a function
at Object. (/usr/lib/node_modules/vuepress/lib/prepare.js:6:18)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at dev (/usr/lib/node_modules/vuepress/lib/dev.js:14:19)
at args (/usr/lib/node_modules/vuepress/bin/vuepress.js:83:12)

@ulivz
Copy link
Member

ulivz commented Apr 15, 2018

util.promisify is introduced from node 8, try to update your node version.

  // package.json
  "engines": {
    "node": ">=8"
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants