botonic
botonic copied to clipboard
botonic new - not working on Apple M1 Max
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?
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.
Same here, I am not able to use the new command on MAC M1 (silicon - arm).
I have tested it on MacOS with M1 and have not had any problems.
Could share more details as:
- Version of
npm
andnode
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
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
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
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
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!