Getting errors installing Strapi - strapi

Hell guys,
I am trying to install Strapi for my backend, but getting this error:
error strapi-generate-new#3.5.4: The engine "node" is incompatible with this module. Expected version ">=10.16.0 <=14.x.x". Got "15.9.0"
error Found incompatible module.
Any pointers how to fix this issue?

Strapi won't run on NodeJS odd numbered versions - which are for developers. You are probably using the 15.14.0, so you have to change to the latest LTS (14.16.1).
To change it, you should use nvm (or node version manager). You can change temporarily with nvm use 14.16.1 or for good (which I recommend) with nvm alias default 14.16.1

Related

How can I uninstall the globally installed "create-strapi-app"?

I moved to a new computer and need to revive old projects (mostly vue, quasar). To do so I run yarn install, then yarn global add #quasar/cli. After the second command I get an error:
error create-strapi-app#4.0.6: The engine "node" is incompatible with this module. Expected version ">=12.22.0 <=16.x.x". Got "18.12.0"
error Found incompatible module.
I did install the strapi cli in a previous project, but I thought that I removed it again using yarn global remove strapi:
> yarn global remove strapi
error This module isn't specified in a package.json file.
So I wonder where the error comes from. I checked the global dir (yarn global dir), but there is no strapi cli neither any strapi package at all.
How can I remove the create-strapi-app error?
(I do not want to change the node version; I want to remove the error.)

app/main.jsbundle does not exist error when making archive in apple-m1 and xcode13

I am keep getting this error when generating an archive
however build in simulator is working fine
getting beloe error
Showing Recent Messages
File /Users/simranjeet/Library/Developer/Xcode/DerivedData/ShhParty-csbogbjoovolurdbnvnwtayywufy/Build/Intermediates.noindex/ArchiveIntermediates/ShhParty/BuildProductsPath/Release-iphoneos/ShhParty.app/main.jsbundle does not exist. This must be a bug with
please help
Thanks
#Simranjeet Which version of node are you using? if you are using node v18.8.0. You are likely to get into this problem.
SOLUTION:1
Adding export NODE_OPTIONS=--openssl-legacy-provider to Bundle React Native code and images. Note it should be above export NODE_BINARY=/usr/local/bin/node
SOLUTION:2
I suggest you use node V.16 You can use nvm to install it.

No version set for command go

I attempted to check the version of my go executable with go version on an Ubuntu machine, however I got the following error:
No version set for command go
Consider adding one of the following versions in your config file at
golang 1.16.8
golang 1.17.1
How do I resolve this? I have no prior experience with config file, I searched on google but I found nothing which could solve this issue.
That seems to be an error message from asdf-vm/asdf, a tool which manages multiple runtime versions with a single CLI tool, extendable via plugins.
You can see that error message in asdf-vm/asdf issue 838.
The config file should be in $HOME/.tool-versions
To resolve this, as in this example:
asdf plugin add go
asdf install go latest

How to Install old version go-vim plugin

I am a new golang developer. My company uses go 1.10.2, and I hit following error during installing vim-go
Error installing golang.org/x/tools/cmd/gopls: # golang.org/x/tools/internal/lsp/source^#../../../golang.org/x/tools/internal/lsp/source/symbols.go:232:18: ti.EmbeddedType undefined (t
ype *types.Interface has no field or method EmbeddedType
It turns out due to the old go version. https://github.com/fatih/vim-go/issues/2246, https://github.com/golang/go/issues/31864. Since upgrade go version is not an option, the only choice I can think of is to install an old version vim-go that supports go 1.10.2. But I am not sure how to do so.
This is how I install vim-go now:
git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go
then open up vim and run :GoInstallBinaries (where above error show up)
Any suggestions would be great. Since I am neither a vim nor a go person before, more details would be appreciate!
You should try goenv it support multiple version of golang.
Here is the installation guide
https://github.com/syndbg/goenv/blob/master/INSTALL.md
And after installation you can choose and install any version from the list.
Just by typing..
goenv install 1.10.2
Solved it by cloning the repo and checkout to an old commit

Node.js version and Heroku

So, I got a small site started in node.js (my first one) using Express. Pretty happy with it, until I tried to deploy to Heroku and found that I had 0.4.9 installed and they only support 0.4.7.
Is uninstalling 0.4.9 and installing 0.4.7 my only option, or is there a way to do a side-by-side on the two?
You can override the version of node.js and npm by customizing the Heroku build pack:
http://blog.superpat.com/2011/11/15/running-your-own-node-js-version-on-heroku/
Actually...you do not have to remove anything.
Just ensure you are using features of node compliant with node 0.4.7 and when you make your package.json which specifies your dependencies has the correct version number or range specified.
I had a similar issue where one of our developers made is packacge and set the dependency to node 0.4.8 however it didn't require this it was just what version he was using at the time, we ended up updating his package.json to list node 0.4.7 instead and then my package which depended on his deployed to heroku just fine.
It seems Heroku only supports 0.4.7 at the moment and even suggests to develop strictly on that version.
If you have to use heroku then you have to uninstall 0.4.9, install 0.4.7.
If you don't have to use heroku. You can always setup a VPS yourself, and you will have the freedom to install whatever version that pleases you. :D

Resources