Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 02 2020 06:16
    @ljharb banned @frank-dspeed
  • Apr 27 2018 01:23
    @MylesBorins banned @fjeddy
  • Feb 24 2016 08:26
    @rvagg banned @jonathanenbe
Jacob Bogers
@Jacob_Bogers_twitter
who is using the hash?
some kind of build system?
zwx00
@zwx00
npm is using the hash, I have a lockfile (npm-shrinkwrap.json) in the second (installing) project
I run npm ci there
and the integrity check fails because the package built in the previous step doesn't have the same checksum
I realize the architecture isn't ideal here, ideally I would be pushing this package to a repository instead of rebuilding it locally every time, but this is a temporary solution and I really want to figure something out, I can get on with it.
Jacob Bogers
@Jacob_Bogers_twitter
you can use "lodash": "file:/dir1/dir2/" in package.json
(change lodash with your package name)
zwx00
@zwx00
I use it like that yes
except i use a tar package as path
Jacob Bogers
@Jacob_Bogers_twitter
ok
why use package
zwx00
@zwx00
had other issues when I just used the folder path alone, not sure if that's even supposed to work
Jacob Bogers
@Jacob_Bogers_twitter
i use it all the time
zwx00
@zwx00
because my lib folder wasn't copied around
hmmm
Jacob Bogers
@Jacob_Bogers_twitter
oh, ofc, delete package-lock.json and npm i
zwx00
@zwx00
my lib folder wasn't installed with the rest of the package after installing
Jacob Bogers
@Jacob_Bogers_twitter
because it creates symbolic links
You need to do uninstall
then change the package.json manuall
then "npm i"
then it will work
zwx00
@zwx00
change to manual? what do you mean
Jacob Bogers
@Jacob_Bogers_twitter
change it manually
zwx00
@zwx00
ah
not through npm install
Jacob Bogers
@Jacob_Bogers_twitter
put in the entry into package.json by editor
no no
zwx00
@zwx00
i see
Jacob Bogers
@Jacob_Bogers_twitter
then AFTER you change it manually
ofc do npm install
zwx00
@zwx00
hmm
ok let me try
Jacob Bogers
@Jacob_Bogers_twitter
then npm will create symbolic links in your node_modules
to the location file:/...
zwx00
@zwx00
i actually got the same hash a couple of times, but yeah, id skip the tarball if possible
Jacob Bogers
@Jacob_Bogers_twitter
(this could also be relative location)
zwx00
@zwx00
yes
let see
Jacob Bogers
@Jacob_Bogers_twitter
its a bit of a hassle but it works
zwx00
@zwx00
yeah thanks, trying it now
Jacob Bogers
@Jacob_Bogers_twitter
check node_modules if it has created a link
(symbolic link)
zwx00
@zwx00
yup
sec
zwx00
@zwx00
hey i think its working!
very good I can get rid of a lot of boilerplate now
thanks!
Jacob Bogers
@Jacob_Bogers_twitter
yw