Base solution for your next web application
Open Closed

Issue in Building Angular Production #8983


User avatar
0
Tachyon created

We are newly purchased the ASP.Net Zero Enterprise version as attached.

We are experiencing one issue when we try to build the Angular project and publish it for production. This issue gives the following error

npm ERR! 401 Unauthorized - PUT https://registry.npmjs.org/abp-zero-template - You must be logged in to publish packages.**

Do this require to pay an annual amount (support fee or whatever) to be able to build releases in the future? How to solve this problem without renewing the support contract?

If not, why we need to connect to the above site when we need to publish the application?


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Tachyon

    We alredy replied to your email but we can also continue here. Could you share the command you are trying to build your Angular app ? It must be npm run publish. This command just builds the angular app, it shouldn't try to push anything to npmjs.org.

  • User Avatar
    0
    henryand created

    Has this issue been resolved? I am having the same problem.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @henryand

    Acutally, there shouldn't be such a private registery. Do you have any .npmrc or .yarnrc files in your angular folder ?

  • User Avatar
    0
    henryand created

    we found and corrected our problem. we had code that failed "aot" during build optimization.

    the npm-put error for "abp-zero-template" pointed us to our angular.json file that has that template. the production config for that template was configured with a different "aot" setting, which is why it only crashed on publish.

    this issue is still open so I hope this answer helps if @Tachyon is still having issues.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @henryand :)