DEV Community

Markus Schlichting
Markus Schlichting

Posted on

1

NativeScript plugin build: Error: The server returned unexpected response

Just in case your tns plugin build command ever returns

"Error: The server returned unexpected response: "
Enter fullscreen mode Exit fullscreen mode

you should try to append --log=trace (in full command: tns plugin build --log=trace) to find out what is going on.

In my case, I had a conflicting config in my .npmrc file and the server configured in there returned a HTTP 401 .

Removing that .npmrc helped me to run my builds again. Finding it took 30mins of my evening...

Hope you found this earlier and that it helps you ;-)

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay