Closed alfredlinson closed 1 month ago
This seems Permission Access issue to download from https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe
I resolved the issue as per the document mentioned here.
https://github.com/sanack/node-jq?tab=readme-ov-file#advanced-installation
By default, node-jq
downloads jq
during the installation process with a post-install script. Depending on your SO downloads from [https://github.com/jqlang/jq/releases] into ./node_modules/node-jq/bin/jq
to avoid colisions with any global installation. Check #161 #167 #171 for more information. You can safely rely on this location for your installed jq
, we won't change this path without a major version upgrade.
If you want to skip the installation step of jq
, you can set NODE_JQ_SKIP_INSTALL_BINARY
to true
or ignore the post-install script from the installation npm install node-jq --ignore-scripts
.
export NODE_JQ_SKIP_INSTALL_BINARY=true
npm install node-jq
npm install node-jq --ignore-scripts
I encountered an error while running
npm install
(running the terminal as admin user). Below are the details:Node Version: v20.14.0 NPM Version: 10.7.0
I have already configured proxy settings for
npm
and the Windows environment variable. I was able to runnpm install
for other projects without any issues.Error Log:
Questions:
Any suggestions to resolve this issue? Is it mandatory to use the Node and NPM versions mentioned in the repository’s README?
Note: In my personal laptop it worked fine, there was no issues related to
npm i
. So I believe only issue related is to do the installation inside corporate proxy environment.