Our pure JavaScript Scheduler component


Post by bvteam »

We are facing this issue that doesn't not allow up to deploy on Heroku.
Could any one give us support?

On the local host exerting works fine, the problem happen only when we deploy to Heroku

I'll report below the issue we have on Heroku Console.

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@bryntum%2fscheduler - Not found
npm ERR! 404
npm ERR! 404 '@bryntum/scheduler@4.3.5' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.MOYfW/_logs/2022-01-05T09_32_57_305Z-debug.log
-----> Build failed

Can you give us any support on it?
Thank you

Best regards


Post by sergey.maltsev »


Post by bvteam »

Hi Sergey,

We have followed the instructions within the links, now we ended up with the following error while deploying:
-----> Installing dependencies
Installing node modules
npm ERR! code E401
npm ERR! Unable to authenticate, your authentication token seems to be invalid.
npm ERR! To correct this please trying logging in again with:
npm ERR! npm login


   npm ERR! A complete log of this run can be found in:
   npm ERR!     /tmp/npmcache.AYUge/_logs/2022-01-15T17_59_26_304Z-debug.log

-----> Build failed

We have logged in with npm and than generated the token, saved it inside the .npmrc


Post by bvteam »

And of course I'm logged in on myLocal host

$ npm login --registry=https://npm.bryntum.com

Username: user..yourdomain.com
Password: your-customer-zone-password
Email: (this IS public) user@yourdomain.com


Post by sergey.maltsev »

Hi!

Please give us more details on what you have done?
Also attach complete npm log.


Post by bvteam »

Sure,

To solve the issue: "Scheduler/Npm repository#err 404 not found".
We followed the instructions within the link you shared: https://www.bryntum.com/docs/scheduler/guide/Scheduler/npm-repository#err-404-not-found

We found that we had already performed all the steps required by the configuration, the only things missing was creation of: .npmrc
We created the .npmtc within the project and added: token="eyJhbGciO......."

Some more context:

  1. version node.js: 16.13.2
  2. version npm: 8.1.2
  3. version Scheduler: 4.3.6

As always on local host everything works fine, the issue happen while deploying on heroku.

As requested this is the full log on heroku:


-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/nodejs
-----> Node.js app detected


-----> Creating runtime environment


   NPM_CONFIG_LOGLEVEL=error
   NODE_VERBOSE=false
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries
engines.node (package.json): 16.x
engines.npm (package.json): unspecified (use default)


   Resolving node version 16.x...
   Downloading and installing node 16.13.2...
   Using default npm version: 8.1.2

-----> Restoring cache
- node_modules


-----> Installing dependencies
Installing node modules
npm ERR! code E401
npm ERR! Unable to authenticate, your authentication token seems to be invalid.
npm ERR! To correct this please trying logging in again with:
npm ERR! npm login


   npm ERR! A complete log of this run can be found in:
   npm ERR!     /tmp/npmcache.oqXhc/_logs/2022-01-16T08_26_19_598Z-debug.log

-----> Build failed


! Push rejected, failed to compile Node.js app.

! Push failed


Post by sergey.maltsev »

Hi!

Please make sure you have valid .npmrc contents.

https://www.bryntum.com/docs/scheduler/guide/Scheduler/npm-repository#listing-the-npm-configuration
It should be like this

@bryntum:registry="https://npm.bryntum.com"
//npm.bryntum.com/:_authToken=...

This is heroku docs
https://devcenter.heroku.com/articles/nodejs-support#private-dependencies


Post by bvteam »

Worked perfectly, Thank you!


Post Reply