DEV Community

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 ;-)

Latest comments (0)