First, I want to assure you that I have searched the forum and read the many posts with this or similar titles. I have been able to work through a number of issues with Node and npm but I am not yet at the finish line - I need some help.
I have a Mac running OS X Big Sur 11.6. I have installed the pre-reqs:
- Homebrew installed
- Python3 - 3.10.0 installed
- Node v14.18.1 installed
- npm 8.1.0 installed
I have un and re-installed edge-impulse-cli multiple times with and without --force
I have downloaded and attempted to run the install script for Macbut there is an issue with this script and I get the following error when I run it:
-bash: ./install-mac.sh: line 7: syntax error near unexpected token `)'
-bash: ./install-mac.sh: line 7: ` -u|--update-all) UPDATE="true"'
so, I tried running the commands in the script but there is conflict between the install script and the instructions page (script installs Python 2.7 while the instructions page says install Python 3). Since the install script won’t run, I decided to trust the instructions page and installed Python 3. Net is that the install script is not functional.
So, here is where I am at with the install. When I type:
npm install edge-impulse-cli -g --force
I get the following:
cmcclell-mac:ei-install-scripts-main chipmc$ npm install edge-impulse-cli -g --force
npm WARN using --force Recommended protections disabled.
npm WARN deprecated @zeit/dockerignore@0.0.5: "@zeit/dockerignore" is no longer maintained
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request-promise@4.2.4: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
added 295 packages, and audited 296 packages in 16s
12 packages are looking for funding
run `npm fund` for details
**6** vulnerabilities (5 **moderate**, 1 **high**)
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
When I try to run the “npm audit fix --force” command I get:
cmcclell-mac:ei-install-scripts-main chipmc$ npm audit fix --force
npm WARN using --force Recommended protections disabled.
npm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/chipmc/.npm/_logs/2021-10-21T13_24_12_875Z-debug.log
cmcclell-mac:ei-install-scripts-main chipmc$
From what I have read, it is not clear if any of these are a big deal and I could not find a solution to the missing lock file issue.
So, it looked like the install completed (albeit with some warnings) yet, when I type an edge impulse command, I get this:
cmcclell-mac:ei-install-scripts-main chipmc$ edge-impulse-daemon
-bash: edge-impulse-daemon: command not found
It felt like a PATH issue but I could not see any clear guidance on what the path should be in the troubleshooting section for the cli install.
I am very excited to start learning about machine vision and I think the Edge Impuse tool is fantastic. But, based on my experience and the number of “trouble with install” posts on this forum, I would suggest that more may need to be done to improve the new user experience.
I would appreciate any help you can give on this. Thank you, Chip