I am currently working on a Vue application and utilizing the x-ray-scraper
library. However, when I attempt to run npm run serve
in the terminal to preview the application locally, I encounter the following error:
This dependency was not found:
* _http_common in ./node_modules/http-outgoing/index.js
To resolve this issue, you can execute: npm install --save _http_common
Subsequently, I tried running the command npm install --save _http_common
again and encountered another error:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for undefined@_http_common.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
Everything seems to work fine without the x-ray-scraper
library, but adding it to my project results in errors surfacing.
It is possible that the issue is related to the version, but I am unsure how to address it.
Here is a snippet from my package.json
:
{
"name": "pc-components",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"axios": "^0.21.0",
"cheerio": "^1.0.0-rc.3",
"core-js": "^3.6.5",
"dns": "^0.2.2",
"phantom": "^6.3.0",
"selenium-webdriver": "^4.0.0-alpha.8",
"vue": "^2.6.11",
"webpage": "^0.3.0",
"x-ray-scraper": "^3.0.6"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"vue-template-compiler": "^2.6.11"
}
}
I appreciate any assistance that can be provided.