luangjokaj / wordpressify

🎈 Automate your WordPress development workflow.
http://www.wordpressify.co
MIT License
1.6k stars 142 forks source link

Unable to install - node version #84

Closed nalmeida closed 3 years ago

nalmeida commented 3 years ago

Hi,

I have followed the install steps:

mkdir wordpressify-test
cd wordpressify-test
npx wordpressify

I am using:

node v15.0.1
npm 7.0.3

Right after the install begins, I am getting the following error:

✔ 1. Creating 🎈 WordPressify files inside →  wordpressifu-test 
⠋ 2. Installing npm packages.../Users/nicalmei/.npm/_npx/1fa8d2c0f0f6a259/node_modules/wordpressify/installer/index.js:59
            throw err;
            ^

Error: Command failed with exit code 1: npm install
npm WARN npm npm does not support Node.js v15.0.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nicalmei/.npm/_logs/2020-12-18T20_55_45_780Z-debug.log
    at makeError (/Users/nicalmei/.npm/_npx/1fa8d2c0f0f6a259/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/Users/nicalmei/.npm/_npx/1fa8d2c0f0f6a259/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at async /Users/nicalmei/.npm/_npx/1fa8d2c0f0f6a259/node_modules/wordpressify/installer/modules/run.js:211:4 {
  shortMessage: 'Command failed with exit code 1: npm install',
  command: 'npm install',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: 'npm WARN npm npm does not support Node.js v15.0.1\n' +
    'npm WARN npm You should probably upgrade to a newer version of node as we\n' +
    "npm WARN npm can't make any promises that npm will work with this version.\n" +
    'npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.\n' +
    'npm WARN npm You can find the latest version at https://nodejs.org/\n' +
    'npm ERR! cb.apply is not a function\n' +
    '\n' +
    'npm ERR! A complete log of this run can be found in:\n' +
    'npm ERR!     /Users/nicalmei/.npm/_logs/2020-12-18T20_55_45_780Z-debug.log',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
luangjokaj commented 3 years ago

Seems something related to your node version. I just tested with node-v15.4.0 and works.

nalmeida commented 3 years ago

Facing tha same error with v15.4.0