Closed klanzi closed 7 years ago
Do you have an old version of serialport in your package.json? If so take it out and try again.
@reconbot do you mean the package.json in the serialport folder or npm folder? thanks for your reply :)
this is from my package.json in serialport folder
"name": "serialport",
"version": "5.0.0-beta2",
"description": "Node.js package to access serial ports. Welcome your robotic JavaScript overlords. Better yet, program them!",
"author": {
"name": "Chris Williams",
"email": "voodootikigod@gmail.com",
"url": "http://www.voodootikigod.com"
},
"binary": {
"module_name": "serialport",
"module_path": "build/{configuration}/",
"host": "https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/5.0.0-beta2"
},
"main": "./lib",
"repository": {
"type": "git",
"url": "git://github.com/EmergingTechnologyAdvisors/node-serialport.git"
},
"keywords": [
"serialport",
"johnny-five",
"serial port",
"hardware",
"iot",
"nodebots"
],
"maintainers": [
{
"name": "Jacob Rosenthal",
"email": "jakerosenthal@gmail.com"
},
{
"name": "Chris Williams",
"email": "voodootikigod@gmail.com"
},
{
"name": "Joe Ferner",
"email": "joe.ferner@nearinfinity.com"
},
{
"name": "Jay Beavers",
"email": "jay@hikinghomeschoolers.org"
},
{
"name": "Rob Giseburt",
"email": "giseburt@gmail.com"
},
{
"name": "Francis Gulotta",
"email": "wizard@roborooter.com"
}
],
"dependencies": {
"bindings": "1.2.1",
"buffer-indexof": "^1.1.0",
"commander": "^2.9.0",
"debug": "^2.3.2",
"lie": "^3.1.0",
"nan": "^2.4.0",
"node-pre-gyp": "^0.6.31",
"object.assign": "^4.0.3",
"readable-stream": "^2.2.2"
},
"devDependencies": {
"chai": "^3.5.0",
"chai-subset": "^1.2.2",
"eslint": "^3.10.0",
"eslint-config-standard": "^6.2.0",
"eslint-plugin-promise": "^3.0.0",
"eslint-plugin-standard": "^2.0.1",
"istanbul": "^0.4.4",
"jsdoc-to-markdown": "^2.0.1",
"mocha": "^3.1.1",
"node-pre-gyp-github": "^1.1.2",
"proxyquire": "^1.7.10",
"sinon": "^1.17.3"
},
"bundledDependencies": [
"node-pre-gyp"
],
"engines": {
"node": ">= 0.10.0"
},
"bin": {
"serialport-list": "./bin/serialport-list.js",
"serialport-term": "./bin/serialport-terminal.js"
},
"license": "MIT",
"scripts": {
"arduino-test": "TEST_PORT=$(./bin/find-arduino.js) npm test",
"docs": "jsdoc2md --no-cache -t .docs/README.hbs --partial .docs/sig-name.hbs --partial .docs/sig-link.hbs --partial .docs/edit-warning.hbs -r table --separators --name-format lib/* > README.md",
"docs:diff": "jsdoc2md --no-cache -t .docs/README.hbs --partial .docs/sig-name.hbs --partial .docs/sig-link.hbs --partial .docs/edit-warning.hbs -r table --separators --name-format lib/* | diff -q README.md - || (echo 'Docs out of date, run `npm run docs` and commit the new README.md' && false)",
"install": "node-pre-gyp install --fallback-to-build",
"lint": "eslint *.js lib/**/*.js test/**/*.js bin/**/*.js examples/**/*.js",
"rebuild-all": "npm rebuild && node-gyp rebuild",
"stress": "mocha --no-timeouts test/arduinoTest/stress.js",
"test": "istanbul cover ./node_modules/mocha/bin/_mocha",
"valgrind": "TEST_PORT=$(./bin/find-arduino.js) valgrind --leak-check=full node test/manual-testing/memory-binding.js",
"debugger": "TEST_PORT=$(./bin/find-arduino.js) node --inspect --debug-brk test/manual-testing/performance.js"
},
"gypfile": true
}
in your project's root folder
Francis Gulotta wizard@roborooter.com
On Tue, Dec 13, 2016 at 1:08 AM, klanzi notifications@github.com wrote:
@reconbot https://github.com/reconbot do you mean the package.json in the serialport folder or npm folder? thanks for your reply :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1029#issuecomment-266655258, or mute the thread https://github.com/notifications/unsubscribe-auth/AABlbkocDbsJ7Z-FLi9ONQRBXaovoDpNks5rHjZfgaJpZM4LK2eq .
From the package.json you provided it looks like you're using the 5x beta, I'd use something from 4x and 6x isn't functional yet.
SerialPort version: 1.7.4 NodeJS Version: 7.2.1 Operating System and Hardware Platform: OSX 10.2.1 Are you using an alternative NodeJS runtime? (eg Electron):n
Summary of Problem
I want to upgrade my serialprt, but after I run `npm install serialport this shown up
Steps and Code to Reproduce the Issue
sorry for this dumb question, I'm really new here :(