Our pure JavaScript Scheduler component


Post by Oliver »

Hello again,

we just purchased the Bryntum Scheduler and we are in the process of integrating it with our Angular app.

We are following the Angular Integration docs and the NPM Repository docs for installing it.

When we try to install via

npm install --registry=https://npm.bryntum.com @bryntum/scheduler@4.1.0

(need to add the --registry config to be able to aim for npm.bryntum.com instead of npmjs) everything is okay.
When we try to install via

npm install --registry=https://npm.bryntum.com @bryntum/scheduler-angular@4.1.0

we get the following error:

npm ERR! code E403
npm ERR! 403 403 Forbidden - GET https://npm.bryntum.com/tslib - user myuser..my-domain.com is not allowed to access package tslib
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.
npm ERR! 403
npm ERR! 403 It was specified as a dependency of '@bryntum/scheduler-angular'
npm ERR! 403

Post by sergey.maltsev »

Hi!

Please check this guide for correct configuring npm repo.
https://www.bryntum.com/docs/scheduler/#guides/npm-repository.md

It should be done first.

npm config set @bryntum:registry https://npm.bryntum.com
npm login --registry=https://npm.bryntum.com

and then install packages with simple npm install no need to add registry there.

Please check installation steps here
https://www.bryntum.com/docs/scheduler/#guides/npm-repository.md#installing-packages


Post by Oliver »

When I try to do it following the steps as you just said (which are the same as the tutorial) I get:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@bryntum%2fscheduler-angular - Not found
npm ERR! 404 
npm ERR! 404  '@bryntum/scheduler-angular@4.1.0' 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.

Post by sergey.maltsev »

Hi!

Please check npm version which you use for right config command.

For npm version 6.x use:

npm config set @bryntum:registry https://npm.bryntum.com

For npm version 7.x use:

npm config set @bryntum:registry=https://npm.bryntum.com

Check installed npm version with:

npm -v

Post by Oliver »

As I've tried several times, I'm showing you what I get following the steps commented:

$npm -v
6.11.3

$npm config set @bryntum:registry https://npm.bryntum.com

$npm login --registry=https://npm.bryntum.com
Logged in as user-name..domain-name.com on https://npm.bryntum.com/.

$npm install @bryntum/scheduler-angular@4.1.0
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@bryntum%2fscheduler-angular - Not found
npm ERR! 404
npm ERR! 404  '@bryntum/scheduler-angular@4.1.0' 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.

Instead, when I try as I described before, the result is the following one:

$npm install --registry=https://npm.bryntum.com @bryntum/scheduler-angular@4.1.0
npm ERR! code E403
npm ERR! 403 403 Forbidden - GET https://npm.bryntum.com/tslib - user user-name..domain-name.com is not allowed to access package tslib
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.
npm ERR! 403
npm ERR! 403 It was specified as a dependency of '@bryntum/scheduler-angular'
npm ERR! 403

So, basically these are 2 ways for doing the same, as I understand. The problem appears on finding the "tslib package" from the server.

In addition, when I run the npm command to get the scheduler

$npm install --registry=https://npm.bryntum.com @bryntum/scheduler@4.1.0

it works!

So the problem appears to be with the angular wrapper. Could you explain me where the problem might come from and how can I solve it?

Thank you so much


Post by sergey.maltsev »

Hi!

Please attach what you have now in npm config.

npm config list

Post by Oliver »

$npm config list
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.11.3 node/v12.11.0 win32 x64"

; userconfig C:\Users\my-user\.npmrc
https://npm.bryntum.com = ""

; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Users\my-user\source\repos\project-folder
; HOME = C:\Users\my-user
; "npm config ls -l" to show all defaults.

Post by sergey.maltsev »

Hi!

Probably you did the wrong step which added

https://npm.bryntum.com = ""

to npm config.

Run this:

npm config delete https://npm.bryntum.com
npm config set @bryntum:registry https://npm.bryntum.com

Check that config is like this one:

; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.14.6 node/v10.22.0 win32 x64"

; userconfig C:\Users\Nil\.npmrc
@bryntum:registry = "https://npm.bryntum.com"

; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Users\Nil\source\repos\ANAGO-WEB\Web\AnagoWeb
; HOME = C:\Users\Nil
; "npm config ls -l" to show all defaults.

Then this:

npm install @bryntum/scheduler@4.1.0
npm install @bryntum/scheduler-angular@4.1.0

Post by Oliver »

It worked!

Thank you so much!


Post Reply