DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Markus Schlichting
Markus Schlichting

Posted on

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)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.