Here is a step-by-step explanation.
Step 1: Get the Commercial Files
Download the ZIP file (e.g., paramquery-pro.zip). Unzip this file into a folder inside your project. A good place might be a vendor/ folder.
Example project structure after unzipping:
text
my-project/
├── node_modules/
├── vendor/
│ └── paramquery-pro/ <-- Your purchased, commercial code is here
│ ├── paramquery files
│ ├── other files/folders
│ ├── package.json <-- This is important!
│ └── ...
├── src/
├── package.json <-- Your project's main package.json
└── ...
Step 2: Modify Your Project's package.json
In your project's main package.json file, you will change the pqgrid dependency. Instead of pointing to the public npm registry, you will point it to the local folder you just created.
Find the dependencies section in your package.json and change this:
json
"dependencies": {
"pqgrid": "^x.x.x" // This gets the TRIAL version from npm
}
To this (using the correct relative path):
json
"dependencies": {
"pqgrid": "file:./vendor/paramquery-pro" // This gets your COMMERCIAL version from the local folder
}
The file: prefix tells npm: "Don't go online to get this package. Look for it on my own computer, in this specific folder."
Step 3: Reinstall the Dependency
Now, you need to tell npm to uninstall the old (trial) version and install the new (commercial) version from your local folder.
In your terminal, navigate to your project's root directory (where your package.json is) and run:
npm install
or
npm update pqgrid
This command will read the "file:./vendor/paramquery-pro" path from your package.json, find the local folder, and link it into your node_modules folder.