Can't docker-compose up on sever keep getting npm error - docker-compose

npm ERR! code EIO
npm ERR! syscall open
npm ERR! path /pot/node/app/package.json
npm ERR! errno -5
npm ERR! EIO: i/o error, open '/opt/node/app/package.json'

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

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

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

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

ionic 2 native installation error

i have this problem when write following code to install ionic-native
this is my code in ionic 2 file project
sudo npm install ionic-native –save
i got this error
npm ERR! addLocal Could not install /Users/apple/Desktop/ionic/bluetooth/–save
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ionic-native" "–save"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! path /Users/apple/Desktop/ionic/bluetooth/–save
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/apple/Desktop/ionic/bluetooth/–save'
npm ERR! enoent ENOENT: no such file or directory, open '/Users/apple/Desktop/ionic/bluetooth/–save'
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! /Users/apple/Desktop/ionic/bluetooth/npm-debug.log
Try this npm install #ionic-native/core --save.
You don't need sudo.

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