[APP CLI]TypeError: string.replace is not a function

Hi there,

I faced with follow problem:
I have the Homey Pro 2019 and I am using Windows 7 SP1, Nodejs version 16.20.1 installed and Homey CLI version 3.0.2.
I was able to create a Homey app and install it on the Homey today morning :slight_smile: But right after that I tried to create and install one more app. After calling homey app install I’ve received the error string.replace is not a function and no more logs.

Maybe someone already faced with such problem and have a solution? What does it could be?
I am aware that I should be updating my OS and use newer versions :smiley:

image

It’s difficult to say exactly, but it’s likely caused by a dependency of homey that is “too new” for your environment.

Perhaps it’s possible to revert back to an older version of homey (npm install homey@2), although that might cause other issues.

It’s super strange and don’t ask me how I came to this, but…
in folder figures(which is in homey → node_modules folder) I found some condition for unicode symbols
const figures = platform === 'win32' ? windows : main;

changing win32 to win64 solved the problem
still…it’s temporary solution, but at least it works :smiley:

1 Like

Strange, since win64 isn’t supposed to be a valid value according to the Node.js documentation :sweat_smile:

1 Like