I'm trying to build an npm package from this repo, I have the "minified" js file, which IntelliJ downloads when seeing the <script src="">
tag, the file is called http_www.webglearth.com_v2_api.js
So, I've followed instructions as per npm official and treehouse, but keep getting an npm ERR! not a package
error message every time I try to do npm install
on the project, I have uploaded my attempt to my Git-hub account, this is what the package.json looks like:
{
"name": "(web_gl_earth_module)",
"version": "1.0.0",
"description": "An npm package to help integrate WEBGL Earth to Angular apps",
"main": "http_www.webglearth.com_v2_api.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "(https://github.com/webglearth/webglearth2.git)"
},
"keywords": [
"webglearth",
"globe",
"visualisation"
],
"author": " (git_hub accounts: petrsloup, klokan)",
"license": "(Apache-2.0)"
}
I've had a browse for similar errors, but no case scenario really matches my issue, I'm not sure that I'm attempting this the right way or that it's even feasible.
My final goal is to be able to import this repository into an Angular project, which is now completely impossible