4

guys,

I found the answer node-js-is-not-installed and I have the same problem

actually, I have nodejs

sudo apt-get install nodejs
Reading state information... Done
nodejs is already the newest version (8.10.0~dfsg-2ubuntu0.4)

. but if I try to build I coach Gradle exception like

Node.js is not installed. Visit https://nodejs.org/en/download/ to install it.
Open File

unfortunately, steps by issues/3745 don't resolve it fo me

enter image description here

any help would be appreciated.

Alex Sonar
  • 41
  • 2
  • 6

4 Answers4

2

I had a identical problem earlier today. But I'm on a Mac. Same behaviour as you experienced.

I've try to reinstall node, and several rebuilding of my project but none of those worked.

In the end, I started over. Seems that the installation of the amplify cli did not went throught the previous time.

npm install -g @aws-amplify/cli

But I've come to another problem with the manifest.xml right after that. I think both are related...

And adding this to my manifest did the job : 'tools:replace="android:name"' (for reference if this problem follow : https://github.com/aws-amplify/amplify-android/issues/532 )

1

Run this in your project directory and then resync: npx amplify-app --platform android

At least, this helped me

DropDrage
  • 725
  • 8
  • 9
0

Did you install amplify using sudo? That has solved my problem. Also using Mac OSX

Nompumelelo
  • 929
  • 3
  • 17
  • 28
-1

Looks like you may not have proper write permissions on node_modules folder, use chmod 777 your_node_module_folder

Vihar
  • 1
  • Using 777 to fix any permissions problems is the worst suggestion possible. Do not provide such tips. Maybe you read this first: https://stackoverflow.com/questions/11271596/how-will-a-server-become-vulnerable-with-chmod-777 – x4k3p Jan 03 '21 at 04:19