FHIR Chat · using package · IG creation

Stream: IG creation

Topic: using package


view this post on Zulip Eric Haas (Jul 25 2018 at 20:22):

I am unable to use a package I have created. can somebody walk me through these steps.. I am on a MacOS and have NPM installed using the CI

view this post on Zulip Eric Haas (Jul 25 2018 at 20:22):

here is what I did:

view this post on Zulip Eric Haas (Jul 25 2018 at 20:23):

Erics-Air-2:Users ehaas$ npm install /Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz

view this post on Zulip Eric Haas (Jul 25 2018 at 20:23):

this is what I got:

view this post on Zulip Eric Haas (Jul 25 2018 at 20:24):

npm WARN notice Due to a recent security incident, all user tokens have been invalidated. Please see https://status.npmjs.org/incidents/dn7c1fgrr7ng for more details. To generate a new token, visit https://www.npmjs.com/settings/~/tokens or run "npm login".
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "/Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code E404

npm ERR! 404 Not found : hl7.fhir.core
npm ERR! 404
npm ERR! 404  'hl7.fhir.core' 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 It was specified as a dependency of 'healthedatainc.igtemplate'
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! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "/Users/ehaas/Documents/FHIR/IG-Template2/docs/package.tgz"
npm ERR! node v6.10.3
 ~~~

view this post on Zulip Grahame Grieve (Jul 25 2018 at 20:44):

umm, why are you using npm?

view this post on Zulip Eric Haas (Jul 25 2018 at 20:51):

because that is what i thought it was

view this post on Zulip Eric Haas (Jul 25 2018 at 20:51):

what do I do?

view this post on Zulip Grahame Grieve (Jul 25 2018 at 20:53):

what are you trying to achieve?

view this post on Zulip Eric Haas (Jul 25 2018 at 20:56):

load the package and run a build

view this post on Zulip Eric Haas (Jul 25 2018 at 20:56):

that is what I thought is was good for

view this post on Zulip Eric Haas (Jul 25 2018 at 20:57):

just like a npm package

view this post on Zulip Eric Haas (Jul 25 2018 at 20:57):

or a python library pip install

view this post on Zulip Grahame Grieve (Jul 25 2018 at 21:02):

what package are you trying to load?

view this post on Zulip Eric Haas (Jul 25 2018 at 21:10):

It was generated from my test build locally.

view this post on Zulip Grahame Grieve (Jul 25 2018 at 21:10):

main build? or IG build?

view this post on Zulip Eric Haas (Jul 25 2018 at 21:17):

Test IG Build

view this post on Zulip Grahame Grieve (Jul 25 2018 at 21:22):

I still don't know what you're trying to do.

view this post on Zulip Grahame Grieve (Jul 25 2018 at 21:22):

you built an implementation guide... and now....?

view this post on Zulip Eric Haas (Jul 25 2018 at 21:50):

I want to know how to use the the package.tgz file it created. Do I just unzip it?

view this post on Zulip Grahame Grieve (Jul 25 2018 at 21:50):

use it how?

view this post on Zulip Eric Haas (Jul 25 2018 at 21:51):

Just testing it how to use it in case I need to in the future.

view this post on Zulip Eric Haas (Jul 25 2018 at 21:51):

I assumed it was a way to share IG resources and build your own version of it.

view this post on Zulip Grahame Grieve (Jul 25 2018 at 21:52):

well, at present, here's what can use the package:
- the FHIR validator
- the IG Publisher
- the notepad++ plug-in
- the FHIR toolkit
- my FHIR server

view this post on Zulip Grahame Grieve (Jul 25 2018 at 21:53):

all of which use the package from the local package cache

view this post on Zulip Eric Haas (Jul 25 2018 at 21:53):

so how do I use it with the IG pub

view this post on Zulip Grahame Grieve (Jul 25 2018 at 21:54):

the only way to do that is to build some other IG that has a dependency on the IG you just built. And then you list the IG you just built in the dependencies using 'dev' as the version, and it will automatically find what you last built

view this post on Zulip Eric Haas (Jul 25 2018 at 21:59):

ok thanks that clears it up for me.


Last updated: Apr 12 2022 at 19:14 UTC