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

botonic new - not working on Apple M1 Max #2523

Open
silviucs opened this issue Jun 7, 2023 · 7 comments
Open

botonic new - not working on Apple M1 Max #2523

silviucs opened this issue Jun 7, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@silviucs
Copy link

silviucs commented Jun 7, 2023

Hello all,

I got the following error when tried to run botonic new <project>

8048 error Binary has a problem: Error: dlopen(<path>/myBot/node_modules/node-sass/vendor/darwin-arm64-115/binding.node, 0x0001): tried: '<path>/myBot/node_modules/node-sass/vendor/darwin-arm64-115/binding.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/<...>/myBot/node_modules/node-sass/vendor/darwin-arm64-115/binding.node' (no such file), '<path>/myBot/node_modules/node-sass/vendor/darwin-arm64-115/binding.node' (not a mach-o file)

Any ideas about how to fix it?

@silviucs silviucs added the bug Something isn't working label Jun 7, 2023
@vanbasten17
Copy link
Contributor

Hi @silviucs , we haven’t tested yet this command with M1’s Apple. We will have to check it. Have you tried with Linux? https://es.wikipedia.org/wiki/GNU/Linux
They have lots of distros to try.

@pulse-mind
Copy link

Same here, I am not able to use the new command on MAC M1 (silicon - arm).

@manuelalferez
Copy link
Contributor

I have tested it on MacOS with M1 and have not had any problems.

Could share more details as:

  • Version of npm and node that you are using: npm -v && node -v
  • Where you have installed npm and node: which npm && which node
  • Where you have installed botonic: which botonic

@pulse-mind
Copy link

pulse-mind commented Jun 26, 2023

Hello manuel,

Thank you for your answer.
I tried again:
First time I installed botonic using npm install @botonic/cli, second time using npm install -g @botonic/cli and third time using sudo npm i -g @botonic/cli --unsafe-perm=true --allow-root
But each time I got the same result, a long log. I added it in attachment 2023-06-26T12_01_29_409Z-debug-0.log, I do not think there is secrets inside.

To answer to your questions :

$ npm -v && node -v
9.6.7
v20.3.1
$ which npm && which node
/opt/homebrew/bin/npm
/opt/homebrew/bin/node

This is my last attempt using sudo...

which botonic
/opt/homebrew/bin/botonic

@manuelalferez
Copy link
Contributor

manuelalferez commented Jun 27, 2023

Hi @pulse-mind,

I can see that the problem may be due to having installed botonic with brew. I would try the following:
Uninstall Botonic and reinstall it globally:

brew uninstall botonic
npm install -g botonic

If the problem persists, it is due to the node versions you have installed, you should downgrade it to v16. You can do it using nvm:

brew install nvm
nvm install 16 && nvm use 16

@pulse-mind
Copy link

Hi,

Thank you for your reply.

I did not use brew to install botonic, there is no available formula with the name botonic ;).

I tried 3 different ways and each time I used the uninstall method to clean it. I tried:

# 1 - Because I did not want to install it globally the first time
npm install @botonic/cli
# 2- Because I decided to follow the procedure :)
npm install -g @botonic/cli
# 3- Because in the documentation, it was written something about MACOS
sudo npm i -g @botonic/cli --unsafe-perm=true --allow-root

I followed your suggestion to install nvm in order to have multiple node versions and to install v16. So I did :

brew install nvm
nvm install 16 && nvm use 16
npm install -g @botonic/cli
botonic new myBot blank

The creation of the project myBot is done. Thank you!.

When I run botonic serve I got this error :

Error: Cannot find package '@babel/plugin-proposal-object-rest-spread' imported from /Users/pulsemind/Projects/botonic/myBot/babel-virtual-resolve-base.js

So I did :

npm add @babel/plugin-proposal-object-rest-spread
npm install

@manuelalferez
Copy link
Contributor

manuelalferez commented Jun 27, 2023

You're correct, Botonic hasn't been included in the brew yet! 😁

As for the previous error you encountered, someone reported this issue some time ago, and the proper solution to resolve it is the one you suggested.

You're welcome! I'm glad you could share potential issues that the community might encounter in the future.

If you need further assistance, feel free to ask!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants