Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Commit a3b3571

Browse files
committed
1.1.0
1 parent d760a9d commit a3b3571

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,20 @@ This will install the latest Node. You may need to alias nodejs to node.
5555
##### 2. You can install Node from a PPA:
5656
```
5757
cd ~
58-
curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
58+
curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
5959
sudo bash nodesource_setup.sh
6060
sudo apt install nodejs
6161
nodejs -v
6262
```
63-
This will install node v10.23.0 (latest stable release of node 10). You can replace the 10 with 12 if you want to install node 12. You may need to alias nodejs to node.
63+
This will install node v12. You may need to alias nodejs to node.
6464

6565
##### 3. Using NVM (preferred method):
6666
```
6767
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.35.3/install.sh -o install_nvm.sh
6868
bash install_nvm.sh
6969
source ~/.profile
70-
nvm install 10.23.0
71-
nvm use 10.23.0
70+
nvm install 12
71+
nvm use 12
7272
node -v
7373
```
7474
Check the latest version of NVM before you install (it might be higher than v0.35.3). You can go online to learn how to use NVM to switch node versions on the fly.
@@ -79,9 +79,9 @@ It is important to note that because our scripts use OS level Bluetooth librarie
7979
You also need to check that the version of node you are using is as expected for sudo:
8080
```
8181
$ node -v
82-
v0.10.23
82+
v12.22.10
8383
$ sudo node -v
84-
v0.11.8-pre
84+
v12.22.10
8585
```
8686
As you can see here, the sudo node version is not the same as the current user version. Here's a [workaround](https://stackoverflow.com/questions/21215059/cant-use-nvm-from-root-or-sudo). You can google-fu more about this topic.
8787
```
@@ -92,8 +92,7 @@ sudo cp -r $n/{bin,lib,share} /usr/local
9292
```
9393

9494
##### Using bluez, BLE Dongles, and Node
95-
At the time of this release, Node 10 is supported. Node 12 is not currently supported as `node-ffi` and some other libraries have not been updated.
96-
We have to use a custom fork of node-ffi until then (see package.json). Hopefully node-ffi will be updated to support Node 10 and Node 12 officially.
95+
At the time of this release, Node 12 is supported. Node 14/16 is not currently supported as `node-ffi` and some other libraries have not been updated to support those versions.
9796

9897
Bluez 5.50 works but 5.54 might not work. Here's a good [tutorial](https://learn.adafruit.com/install-bluez-on-the-raspberry-pi/installation)
9998

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metawear",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"author": "Laura Kassovic <[email protected]>",
55
"license": "SEE LICENSE IN LICENSE",
66
"description": "Official JavaScript SDK for MetaWear",
@@ -21,7 +21,7 @@
2121
],
2222
"main": "./index.js",
2323
"engines": {
24-
"node": ">=0.10.0"
24+
"node": ">=12.0.0 <13.0.0"
2525
},
2626
"homepage": "https://github.com/mbientlab/MetaWear-SDK-JavaScript#readme",
2727
"dependencies": {

0 commit comments

Comments
 (0)