uzufly / showcase-cesium-ifc

Showcases the integration of an IFC BIM model within the immersive Cesium 3D environment.
https://showcase-cesium-ifc.uzuverse.com/
Apache License 2.0
25 stars 7 forks source link

authentication token not provided #2

Closed ayacoub1 closed 1 month ago

ayacoub1 commented 1 year ago

I am getting following error when trying to install npm: npm ERR! 401 Unauthorized - GET https://npm.pkg.github.com/download/@uzufly/cesium-ifc- viewer/0.11.0/75e0fd1d4673c5512996a8845b65328afad91655 - authentication token not provided

matteo-pupa commented 1 year ago

I am getting following error when trying to install npm: npm ERR! 401 Unauthorized - GET https://npm.pkg.github.com/download/@uzufly/cesium-ifc- viewer/0.11.0/75e0fd1d4673c5512996a8845b65328afad91655 - authentication token not provided

same!

ted-dino commented 10 months ago

any update guys? do we need to pay or do something to use the ifc-viewer package?

update: i found out that the package is available in Github Package. to setup i just followed this guide in the docs.

mrestrepoj10 commented 1 month ago

@ted-dino Hi!! i'm having the same problem, can you please give detalis or share in how did you manage to make it work?

ted-dino commented 1 month ago

@ted-dino Hi!! i'm having the same problem, can you please give detalis or share in how did you manage to make it work?

hey @mrestrepoj10 ! have you figured it out yet? for my case, i read and followed this document and i also found this helpful blog post with a quick google search. i hope this helps!

olange commented 1 month ago

hi @ayacoub1, @matteo-pupa, @mrestrepoj10. I stumbled onto this issue in a cooldown cycle, while reviewing the PRs; sorry for the late answer.

You don't need to pay anything to use the @uzufly/cesium-ifc-viewer package: it was open-sourced, as part as a joint exploratory project with the School of Architecture, Civil and Environmental Engineering (ENAC) which is part of the EPFL.

As @ted-dino correctly pointed out, your core issue is that we published the @uzufly/cesium-ifc-viewer in the GitHub Package Registry (GHP) instead of NPM.js default registry. And the GitHub Package Registry always requires anyone to authenticate, with its GitHub account — GHP requires this.

In short, to use the GHP, you need to:

  1. generate a Personal Access Token (PAT);
  2. and configure your NPM local install to instruct NPM to: i. to lookup the GHR for any package in the @uzufly scope; ii. to use your PAT for that same scope.

One way to configure your NPM is to manually edit your ~/.npmrc, in the following form:

//npm.pkg.github.com/:_authToken=‹YOUR_PERSONAL_ACCESS_TOKEN›
@uzufly:registry=https://npm.pkg.github.com/

Please note: I won't further support setting up your NPM environment; please figure it out. Note: ‹YOUR_PERSONAL_ACCESSTOKEN› starts with `ghp`.

I am pleased to see this experiment rose your interest and I owe you a more complete update about the status of this project. We should probably archive this repository, as it is not actively maintained.

olange commented 1 month ago

Again, thanks for your interest and sorry for the annoyance of the deployment on GHP.

Some background info

Status

Features

Future work

Would you be interested in knowing more, please reach out to me or start a discussion here; I would love to hear what you were expecting from this experiment: https://github.com/uzufly/showcase-cesium-ifc/discussions