Hi, Thanks for the reply.
I managed to install node as per the instructions on the webpage linked, cheers.
I got this message on the terminal:
Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$ sudo npm i -g npm
āøØāāāāāāāāāāāāāāāāāāāø© ā § rollbackFailedOptional: verb npm-session fa56b276ceb6ebd
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
updated 1 package in 17.746s
Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$
Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$
now⦠when i try:
npm install -g node-serialoscd
At first i get all this errors:
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access ā/usr/local/lib/node_modulesā
npm ERR! { [Error: EACCES: permission denied, access ā/usr/local/lib/node_modulesā]
npm ERR! stack:
npm ERR! āError: EACCES: permission denied, access ā/usr/local/lib/node_modulesāā,
npm ERR! errno: -13,
npm ERR! code: āEACCESā,
npm ERR! syscall: āaccessā,
npm ERR! path: ā/usr/local/lib/node_modulesā }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/thopa_mac_old/.npm/_logs/2019-05-29T11_33_33_117Z-debug.log
And if finally it try with the sudo command i get this errors:
Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$ sudo npm install -g node-serialoscd
/usr/local/bin/serialoscd -> /usr/local/lib/node_modules/node-serialoscd/index.js
serialport@6.2.2 install /usr/local/lib/node_modules/node-serialoscd/node_modules/serialport
prebuild-install || node-gyp rebuild
prebuild-install WARN install EACCES: permission denied, access ā/Users/thopa_mac_old/.npmā
gyp WARN EACCES user ārootā does not have permission to access the dev dir ā/Users/thopa_mac_old/.node-gyp/10.16.0ā
gyp WARN EACCES attempting to reinstall using temporary dev dir ā/usr/local/lib/node_modules/node-serialoscd/node_modules/serialport/.node-gypā
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ā/usr/local/lib/node_modules/node-serialoscd/node_modules/serialport/.node-gypā
gyp ERR! System Darwin 15.6.0
gyp ERR! command ā/usr/local/bin/nodeā ā/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.jsā ārebuildā
gyp ERR! cwd /usr/local/lib/node_modules/node-serialoscd/node_modules/serialport
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@6.2.2 install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@6.2.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/thopa_mac_old/.npm/_logs/2019-05-29T11_34_23_600Z-debug.log
Is there a way to install the file locally? I have the one posted on:
https://github.com/szymonkaliski/node-serialoscd
Many thanks!
**Edited: **
I have tried with another package, i get errors but looks like it installed ārightā?
Thopa-Mac-Olds-MacBook-Pro:~ thopa_mac_old$ npm install easyimage
npm WARN saveError ENOENT: no such file or directory, open ā/Users/thopa_mac_old/package.jsonā
npm WARN enoent ENOENT: no such file or directory, open ā/Users/thopa_mac_old/package.jsonā
npm WARN thopa_mac_old No description
npm WARN thopa_mac_old No repository field.
npm WARN thopa_mac_old No README data
npm WARN thopa_mac_old No license field.
added 7 packages from 5 contributors and audited 7 packages in 55.874s
found 0 vulnerabilities