Installation problem - Windows 10

I am running the npm install on a Windows 10 machine; in an admin powershell and apparently getting some kind of rename error … virus checking is off etc.

npm install -g edge-impulse-cli

This is the tail end of the log file … any idea how to fix whatever the problem is?

4811 silly refresh-package-json C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\simple-get
4812 silly refresh-package-json C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\tar-fs
4813 timing action:refresh-package-json Completed in 393ms
4814 verbose unlock done using C:\Users\patmo\AppData\Roaming\npm-cache\_locks\staging-0cdec3566dcff09d.lock for C:\Users\patmo\AppData\Roaming\npm\node_modules\.staging
4815 timing stage:rollbackFailedOptional Completed in 35325ms
4816 timing stage:runTopLevelLifecycles Completed in 66613ms
4817 verbose stack Error: EPERM: operation not permitted, rename 'C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json.712614660' -> 'C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json'
4818 verbose cwd C:\WINDOWS\system32
4819 verbose Windows_NT 10.0.19042
4820 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "edge-impulse-cli"
4821 verbose node v14.16.1
4822 verbose npm  v6.14.12
4823 error code EPERM
4824 error syscall rename
4825 error path C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json.712614660
4826 error dest C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json
4827 error errno -4048
4828 error Error: EPERM: operation not permitted, rename 'C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json.712614660' -> 'C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json'
4828 error  [OperationalError: EPERM: operation not permitted, rename 'C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json.712614660' -> 'C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json'] {
4828 error   cause: [Error: EPERM: operation not permitted, rename 'C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json.712614660' -> 'C:\Users\patmo\AppData\Roaming\npm\node_modules\edge-impulse-cli\node_modules\balanced-match\package.json'] {
4828 error     errno: -4048,
4828 error     code: 'EPERM',
4828 error     syscall: 'rename',
4828 error     path: 'C:\\Users\\patmo\\AppData\\Roaming\\npm\\node_modules\\edge-impulse-cli\\node_modules\\balanced-match\\package.json.712614660',
4828 error     dest: 'C:\\Users\\patmo\\AppData\\Roaming\\npm\\node_modules\\edge-impulse-cli\\node_modules\\balanced-match\\package.json'
4828 error   },
4828 error   errno: -4048,
4828 error   code: 'EPERM',
4828 error   syscall: 'rename',
4828 error   path: 'C:\\Users\\patmo\\AppData\\Roaming\\npm\\node_modules\\edge-impulse-cli\\node_modules\\balanced-match\\package.json.712614660',
4828 error   dest: 'C:\\Users\\patmo\\AppData\\Roaming\\npm\\node_modules\\edge-impulse-cli\\node_modules\\balanced-match\\package.json',
4828 error   parent: 'edge-impulse-cli'
4828 error }
4829 error The operation was rejected by your operating system.
4829 error It's possible that the file was already in use (by a text editor or antivirus),
4829 error or that you lack permissions to access it.
4829 error
4829 error If you believe this might be a permissions issue, please double-check the
4829 error permissions of the file and its containing directories, or try running
4829 error the command again as root/Administrator.
4830 verbose exit [ -4048, true ]

You might like to give this install script for Win 10 a shot: https://github.com/edgeimpulse/ei-install-scripts
We also just announced a Web Serial feature that may be handy: https://www.edgeimpulse.com/blog/collect-sensor-data-straight-from-your-web-browser

1 Like