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 project that utilizes @biesbjerg/ngx-translate-extract and one of the dependencies sometimes references a git commit (github:lenchvolodymyr/flat#ffe77ef).
This is a development dependency, but the below specification in package-lock.json causes the build to fail, as git is not in the PATH, and there is no network access, anyway.
frontend> building npm cache
frontend> building node_modules
frontend> npm ERR! code ENOENT5mextract [email protected] extracted tK
frontend> npm ERR! syscall spawn git
frontend> npm ERR! path git
frontend> npm ERR! errno ENOENT
frontend> npm ERR! enoent Error while executing:
frontend> npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/lenchvolodymyr/flat.git
frontend> npm ERR! enoent
frontend> npm ERR! enoent
frontend> npm ERR! enoent spawn git ENOENT
frontend> npm ERR! enoent This is related to npm not being able to find a file.
Furthermore, the package-lock.json seems to reference the dependency regardless of NODE_ENV (e.g. prod), npm i --only-prod, etc., so I am having issues directing it to a non-git commit to work around this issue.
If there is a way to do so with the current state of the repository, that would be helpful at this point.
Not sure how much work it would take to support fetching node dependencies from git repositories, assuming it is not supported at the moment, as this issue seems to indicate.
The text was updated successfully, but these errors were encountered:
I have a project that utilizes
@biesbjerg/ngx-translate-extract
and one of the dependencies sometimes references a git commit (github:lenchvolodymyr/flat#ffe77ef
).This is a development dependency, but the below specification in
package-lock.json
causes the build to fail, asgit
is not in thePATH
, and there is no network access, anyway.node_modules/@biesbjerg/ngx-translate-extract
:Error produced by
nix-npm-buildpackage
:Furthermore, the
package-lock.json
seems to reference the dependency regardless ofNODE_ENV
(e.g.prod
),npm i --only-prod
, etc., so I am having issues directing it to a non-git commit to work around this issue.If there is a way to do so with the current state of the repository, that would be helpful at this point.
Not sure how much work it would take to support fetching node dependencies from git repositories, assuming it is not supported at the moment, as this issue seems to indicate.
The text was updated successfully, but these errors were encountered: