How to make Highcharts work with meteor v1.9.3 - meteor

I am trying to create an app that uses Highcharts to make a graph on the screen. I cannot figure out how to download highcharts so that it works with meteor version 1.9.3.
I tried to download highcharts using npm install highcharts --save but this is not working with the meteor version I have. From Node.js I get this response
$meteor npm install --save highcharts
+ highcharts#7.1.2
added 1 package from 1 contributor and audited 605 packages in 57.929s
found 2 moderate severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
When I run npm audit fix it is not able to fix the vulnerabilities. Then when I run my project I cannot get the highchart graph to show up. Also when I was looking for a solution I found the following website which states that npm install --save highcharts won't work on versions of meteor above 1.3.
https://atmospherejs.com/highcharts/highcharts-meteor
Is there another way to download Highcharts?

Related

Error found while developing games with react

I am getting the following error while duilding tic-tac-toe game with react.
"./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
Error: Package exports for 'G:\Nodejs\projectReact\tic-tac-toe\node_modules\colorette' do not define a valid '.' target"
I faced a similar issue when I had the latest colorette version installed i.e. 1.2.1. As per my understanding, this version of colorette requires Node 14+ while I have Node 13.1. Therefore there are two options to resolve this, either upgrade Node to 14+ version of downgrade colorette to its previous version 1.2.0.
I have not tried upgrading Node as it will effect my other projects so I have just downgraded colorette to 1.2.0 and it works fine for my case by using following commands.
To uninstall colorette:
npm uninstall colorette
To install colorette version 1.2.0:
npm install colorette#1.2.0
Had the same problem when using node v 13.1.x upgrade it to 14.x helped so far using command :
sudo n latest

Meteor installation/updation problems on Windows 7

I'm tried to install Meteor on Windows 7:
I downloaded the installer from the official download link. Upon trying to install it, I get the error Failed to contact install server.
Using this answer over here I successfully managed to install an older version of Meteor: but now neither meteor update nor any other command works. The response I get is:
This project uses Meteor 1.2.1, which isn't available on Windows. To work with this app on all supported platforms, use meteor update --release METEOR#1.2.1 to pin this app to the newest Windows-compatible release.
The suggested command generates the same response. Any workarounds?

Not able to install iron-router to meteor version 0.9.1

Today only i updated the meteor version to 0.9.1 but i am not able to install iron-router to my new project created by using the command
meteor add iron:router
the error i get is:
downloading iron:dynamic-template at version 0.3.0 ...
/root/.meteor/packages/meteor-tool/.1.0.26.13pjtg1++os.linux.x86_32+web.browser+web.cordova/meteor-tool-os.linux.x86_32/dev_bundle/lib/node_modules/fibers/future.js:206
throw(ex);
^
[Offline: Error: SELF_SIGNED_CERT_IN_CHAIN]
i also tried to revise my meteor back to older version to 0.8.3 and used mrt then also can't able to install iron-router. Please tell me how to install iron-router for meteor version 0.9.1.
This is possibly due to broken pipe in connection. I was getting similar errors. Try closing the terminal window and run the update again and should run smoothly. Even if you get errors just try to run 2-3 times till all the packages are downloaded and updated.

meteorjs packages not visible

I'm new to meteor. I just created an app and install bootstrap and iron-router via mrt.
When I look at the file structure, I can see iron-router but not bootstrap (I don't see all the other pre-installed packages either).
When I run the app, everything works fine though. But I need to see these packages to understand what's happening.
Thanks,
There are two types of packages in Meteor projects. 'official' packages and unsupported community packages (from atmospherejs.com)
The mrt package manager wasn't built by the Meteor Core development team (as of v0.8.1). The packages from atmosphere will be installed in /packages
The other packages which are officially part of Meteor are not visible here but they are used from ~/.meteor/packages. Alternatively you can browse the source of them here: https://github.com/meteor/meteor/tree/devel/packages.
Eventually meteorite and meteor will be merged. Even though Meteorite installs these community packages for you, it looks like when it is folded into meteor it will remain this way (installing into /packages).
So in short, the 'official' packages aren't installed in /packages because they are available in all meteor distributions, whereas the unsupported ones from atmosphere need to be downloaded for the project in question into /packages.

Node package dependencies for application

As Meteor 0.6.x introduced support of node packages, it is still not clear how to configure dependency to npm package for whole application. Lets say i need to 'require' some node package in the server code. How to make sure this package will be installed after app is deployed somewhere else?
It's easy enough to setup a package.json file in the root of your project.
You can find a cheatsheet here to help you set one up: http://package.json.nodejitsu.com/
Under dependencies you can specify your runtime deps.
They are installed using the $ npm install command or # npm -g install in case you wnat to install them on your system rather than local to the project.

Resources