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

error Failed at the netlify-cli@15.6.0 postinstall script. #5814

Closed
indyarocks opened this issue Jun 20, 2023 · 1 comment
Closed

error Failed at the netlify-cli@15.6.0 postinstall script. #5814

indyarocks opened this issue Jun 20, 2023 · 1 comment
Labels
type: bug code to address defects in shipped code

Comments

@indyarocks
Copy link

Describe the bug

While installing netlify cli - npm install netlify-cli -g

Getting following error:

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/esbuild-android-64@0.14.39: wanted {"os":"android","arch":"x64"} (current: {"os":"darwin","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! netlify-cli@15.6.0 postinstall: `node ./scripts/postinstall.mjs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the netlify-cli@15.6.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/chandan/.npm/_logs/2023-06-20T14_17_19_876Z-debug.log

Here is the log:

$>  ➜ cat /Users/chandan/.npm/_logs/2023-06-20T14_17_19_876Z-debug.log
...

31252 verbose node v12.16.2
31253 verbose npm  v6.14.4
31254 error code ELIFECYCLE
31255 error errno 1
31256 error netlify-cli@15.6.0 postinstall: `node ./scripts/postinstall.mjs`
31256 error Exit status 1
31257 error Failed at the netlify-cli@15.6.0 postinstall script.
31257 error This is probably not a problem with npm. There is likely additional logging output above.
31258 verbose exit [ 1, true ]
 ➜ node -v
v12.16.2

Steps to reproduce

Installing netlify cli - npm install netlify-cli -g

On Mac OS Ventura 13.4

Configuration

No response

Environment

npx: installed 1 in 0.835s

System:
OS: macOS 13.4
CPU: (8) x64 Apple M1
Memory: 36.79 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 12.16.2 - ~/.nvm/versions/node/v12.16.2/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 6.14.4 - ~/.nvm/versions/node/v12.16.2/bin/npm

@indyarocks indyarocks added the type: bug code to address defects in shipped code label Jun 20, 2023
@XhmikosR
Copy link
Contributor

Node.js 12 is not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

3 participants