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

superplate-cli has encountered an error. #267

Open
yoiang opened this issue Jul 31, 2021 · 8 comments
Open

superplate-cli has encountered an error. #267

yoiang opened this issue Jul 31, 2021 · 8 comments

Comments

@yoiang
Copy link

yoiang commented Jul 31, 2021

Hello! I am running into this crash when I've tried using the cli:
Node: v14.17.1

✔ Cloned remote source successfully.
✔ Select your project type › nextjs
✔ What will be the name of your app · sample_app
✔ UI framework: · bootstrap
✔ CSS Preprocessor: · styled-components
✔ Do you also want to add styled-system ? · none
✔ Features: · axios,storybook,svgr,env,bundle-analyzer
✔ Hooks · react-query
✔ State Management: · none
✔ i18n - Internationalization · next-translate
✔ Linting tools: ·
✔ Testing Framework: · testing-library
✔ E2E Testing framework: · cypress
✔ Docker integration: · none
✔ Continuous integration: · none
superplate-cli has encountered an error.

If you think this is caused by a bug. Please check out:
https://github.com/pankod/superplate/issues

ERROR SAOError: Failed to install packages in /Users/username/sample_app
    at ChildProcess.<anonymous> (/Users/username/.npm/_npx/68a94a7f4a156bcd/node_modules/sao/dist/chunk.T-GsVNZ1.js:6885:16)
    at ChildProcess.emit (events.js:375:28)
    at maybeClose (internal/child_process.js:1055:16)
    at Socket.<anonymous> (internal/child_process.js:441:11)
    at Socket.emit (events.js:375:28)
    at Pipe.<anonymous> (net.js:675:12) {
  sao: true
}
@yoiang
Copy link
Author

yoiang commented Jul 31, 2021

Is there a verbose output mode? That would help narrowing down the issue in the future!

After many permutations it looks like styled-components was the culprit, not selecting it causes the installation to move forward.

@omeraplak
Copy link
Contributor

Hi @yoiang ,
Thank you for contacting us. We've fixed your issue and release 1.2.2. Could you try again?

@yoiang
Copy link
Author

yoiang commented Aug 10, 2021

Hey @omeraplak ! Thank you for the update! Unfortunately I am still getting this issue

@naquiroz
Copy link

For me the issue was styled-system

@omeraplak omeraplak reopened this Jan 18, 2022
@kevnoutsawo
Copy link

kevnoutsawo commented May 29, 2023

Hello,
I am facing the same issue. Has a solution been found yet?

✔ Downloaded remote source successfully.
✔ Choose a project template · refine-react
✔ What would you like to name your project?: · client
✔ Choose your backend service to connect: · data-provider-custom-json-rest
✔ Do you want to use a UI Framework?: · mui
✔ Do you want to add example pages?: · inferencer
✔ Do you need any Authentication logic?: · auth-provider-google
✔ Do you need i18n (Internationalization) support?: · no
✔ Choose a package manager: · npm
✔ Would you mind sending us your choices so that we can improve superplate? · yes
superplate-cli has encountered an error.

If you think this is caused by a bug. Please check out:
https://github.com/pankod/superplate/issues

ERROR SAOError: Failed to install packages in /home/kevin/Projects/refine_dashboard/client
    at ChildProcess.<anonymous> (/home/kevin/.npm/_npx/98c66fac912b1cba/node_modules/sao/dist/chunk.T-GsVNZ1.js:6885:16)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
  sao: true
}

I have tried using different connections and even a VPN as someone mentioned that is another issue but to no avail.
Thanks in advance.

@kevnoutsawo
Copy link

I could make it work by choosing yarn instead of npm as package manager when prompted.

@Busilancer
Copy link

I have a similar error. Some help please

superplate-cli has encountered an error.

If you think this is caused by a bug. Please check out:
https://github.com/pankod/superplate/issues
ERROR SAOError: Failed to install packages in C:\Users\dompa\Desktop\refine-dashboard/client
at ChildProcess. (C:\Users\dompa\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\sao\dist\chunk.T-GsVNZ1.js:6885:16)
at ChildProcess.emit (node:events:513:28)
at cp.emit (C:\Users\dompa\AppData\Local\npm-cache_npx\98c66fac912b1cba\node_modules\sao\dist\chunk.T-GsVNZ1.js:460:27)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5) {
sao: true
}

@GiantCoder
Copy link

GiantCoder commented Jan 22, 2024

I got the same error using either npm or yarn:
ERROR SAOError: Failed to install packages in /Users/mattotoole/Documents/code/react/refine-dashboard at ChildProcess.<anonymous> (/Users/mattotoole/.npm/_npx/98c66fac912b1cba/node_modules/sao/dist/chunk.T-GsVNZ1.js:6885:16) at ChildProcess.emit (events.js:376:20) at maybeClose (internal/child_process.js:1055:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) { sao: true }

React 14.17
npm 9.6.2
yarn 1.22.18

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

6 participants