You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have a repository of npm library which being used by other repos.
i want to be able to test this library properly before releasing a new release from specific branch.
i saw it is possible to install npm pacakge from github repository so i did the following:
updated the library-repo to include prepare script like this:
"preapre": "npm run build"
updated one of the repository that using this library (repo1) on package.json with the following:
"@org/library-repo": "github:org/library-repo#branch"
(instead of "@org/library-repo": "0.0.1" )
when i do npm install on repo1 the package indeed installed but the library dependencies installed on the node_modules directory of the library , not on the local node_modules folder.
so when running the application, i get alot of 'cannot find module' errors as i require some of the transitive dependencies and do not directly exist.
copy the node_modules/@org/my-library-repo/node_modules into local node_modules solves this issue but it doesnt seems ideal.
what am i missing?
thanks!
The text was updated successfully, but these errors were encountered:
I had a problem like this, maybe it's the same thing:
$ git clone git@github.com:iann0036/former2.git
$ cd former2/cli
$ former2 # command not found
$ npm install -g .
$ former2 # error (deepmerge.js not found)
$ npm install .
$ former2 # Works!
Apparently when you do 'npm install -g .' it doesn't run the "prepare" script; 'npm install .' does.
In this case, the prepare script is supposed to copy essential files from ../js/ into the current directory.
npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.
If your bug is preproducible on v7, please re-file this issue using our new issue template.
If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo
Hi
i have a repository of npm library which being used by other repos.
i want to be able to test this library properly before releasing a new release from specific branch.
i saw it is possible to install npm pacakge from github repository so i did the following:
"preapre": "npm run build"
"@org/library-repo": "github:org/library-repo#branch"
(instead of "@org/library-repo": "0.0.1" )
when i do npm install on repo1 the package indeed installed but the library dependencies installed on the node_modules directory of the library , not on the local node_modules folder.
so when running the application, i get alot of 'cannot find module' errors as i require some of the transitive dependencies and do not directly exist.
copy the node_modules/@org/my-library-repo/node_modules into local node_modules solves this issue but it doesnt seems ideal.
what am i missing?
thanks!
The text was updated successfully, but these errors were encountered: