im try to connect wio terminal to edge impulse, ive downloaded the node - command

C:\Users\Maysam ALKHALAF>npm install -g edge-impulse-cli
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path C:\Program Files\nodejs\node_modules\edge-impulse-cli
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\edge-impulse-cli'
npm ERR! [Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_modules\edge-impulse-cli'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'C:\Program Files\nodejs\node_modules\edge-impulse-cli'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
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.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Maysam ALKHALAF\AppData\Local\npm-cache_logs\2022-12-07T14_11_39_963Z-debug-0.log
C:\Users\Maysam ALKHALAF>
i downloaded the node, downloaded arduino cli, and when i run the npm i get this error, they were also added to my path so i dont know what to do

Related

npm install -g firebase-tools not working

Just created a new flutter project, and the first thing I did was use the command
npm install -g firebase-tools
Im getting the follow error messages:
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/firebase-tools
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/firebase-tools'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/firebase-tools'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/firebase-tools'
npm ERR! }
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.npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mateusoliveira/.npm/_logs/2023-02-15T15_06_28_910Z-debug-0.log

Error running 'npm install -g firebase-tools'

I ran the following code on the terminal to instal firebase-tools
npm install -g firebase-tools
I am trying to install this to use cloud functions on firebase and I got these errors:
juan#juans-Air ~ % npm install -g firebase-tools
npm ERR! code EACCES
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/firebase-tools
npm ERR! dest /usr/local/lib/node_modules/.firebase-tools-ENG41nb9
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/firebase-tools' -> '/usr/local/lib/node_modules/.firebase-tools-ENG41nb9'
npm ERR! [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/firebase-tools' -> '/usr/local/lib/node_modules/.firebase-tools-ENG41nb9'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rename',
npm ERR! path: '/usr/local/lib/node_modules/firebase-tools',
npm ERR! dest: '/usr/local/lib/node_modules/.firebase-tools-ENG41nb9'
npm ERR! }
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.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/juan/.npm/_logs/2022-10-30T02_59_24_185Z-debug-0.log
juan#juans-Air ~ %
Is there a different way to install this?
i ran it with sudo and it worked::
sudo npm install -g firebase-tools

Issues running Ionic on Macbook

I have been having issues running ionic on my MacBook. I have npm and node downloaded yet my system still doesn't seem to allow me to get Ionic to run. I have tried running it with the sudo command too.
When I run the command npm install -g ionic I get:
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/ionic
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ionic'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/ionic'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/ionic'
npm ERR! }
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.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Janelle/.npm/_logs/2022-03-27T18_13_54_411Z-debug-0.log
looks like ionic was not installed correctly initially, you can always try and remove ionic and re-install. You should not have to run it with sudo

Trouble setting React native

I am trying to set React Native in my Mac El Capitan system following the instructions provided in https://facebook.github.io/react-native/docs/getting-started.html#caveats
When I do
npm install -g create-react-native-app
The output is the following one:
MacBook-Pro-de-Hector:bin Hector$ npm install -g create-react-native-app
npm ERR! not a package /usr/local/bin/create-react-native-app
npm ERR! addLocal Could not install /usr/local/bin/create-react-native-app
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "create-react-native-app"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! path /var/folders/yz/8y2s_bl167xgcnyhdtf0yqs40000gn/T/npm-8989-2d1edf9b/unpack-97e54ff1/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/var/folders/yz/8y2s_bl167xgcnyhdtf0yqs40000gn/T/npm-8989-2d1edf9b/unpack-97e54ff1/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/var/folders/yz/8y2s_bl167xgcnyhdtf0yqs40000gn/T/npm-8989-2d1edf9b/unpack-97e54ff1/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/bin/npm-debug.log
I have tried everything including cleaning cache and other recommendations done in other groups but it doesn't work

Cannot install Ionic on macOS 10.12.3

I have had considerable trouble trying to install Ionic on my Mac. I have tried every suggestion posted on the web without success. I have tried installing as root, using sudo, you name it.
Using Homebrew I have successfully installed node : v6.10.0 and npm v4.1.2.
Issuing: "npm install -g cordova ionic"
Results in:
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v6.10.0
npm ERR! npm v4.1.2
npm ERR! path /Users/craigmaxey/.npm
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall mkdir
npm ERR! Error: EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm'
npm ERR! at Error (native)
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/Users/craigmaxey/.npm' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v6.10.0
npm ERR! npm v4.1.2
npm ERR! path npm-debug.log.3262676290
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'npm-debug.log.3262676290'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, open 'npm-debug.log.3262676290'
npm ERR! at Error (native)
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'npm-debug.log.3262676290' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/craigmaxey/npm-debug.log
This:
EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm'
indicates that you're missing write privileges on /Users/craigmaxey/.npm. Usually, you can fix this by running npm with sudo:
sudo npm install -g cordova ionic
If this doesn't work for you (since you mentioned you already tried sudo), please add the exact error message you get from running this exact command.
I too was getting the same errors and was able to get it to install following these steps:
Using Finder, manually create a folder called "#ionic" at this location: /usr/local/lib/node_modules/#ionic
Using finder, if "ionic" folder exists at /usr/local/bin/ionic, delete it
run sudo npm install -g #ionic/cli