Docker container not created - docker-container

sh: 1: nodemon: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! server.js#1.0.0 dev: nodemon server.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the server.js#1.0.0 dev 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! /root/.npm/_logs/2022-12-19T04_18_54_441Z-debug.log
Please guide me to rectify code or why this error, already run nodemon in terminal

Related

I have problem with my visual studio code when I run command "npm run dev"

PS E:\travel\vuecore course files> npm run dev
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path E:\travel\vuecore course files\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'E:\travel\vuecore course files\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Van Hung\AppData\Roaming\npm-cache_logs\2021-12-25T15_43_05_830Z-debug.log

npm error: Failed at the sodium#3.0.2 preinstall script

i get:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sodium#3.0.2 preinstall: `node install.js --preinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sodium#3.0.2 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
when trying to run "npm install"
why is this? i tried looking at other threads and nothing works for me.

Installing public package using `npm i curlconverter` results in `fatal: Could not read from remote repository`

There already is an issue about this on github however the proposed solution does not solve the problem. I am also not knowledgeable enough to know if this is a bug in the library or not.
$ npm i curlconverter
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git#github.com/NickCarneiro/yargs-ansi.git
npm ERR!
npm ERR! git#github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2021-05-17T14_07_32_675Z-debug.log
I am able to install curlconverter locally by installing an older version:
npm install --save yargs
npm install --save curlconverter#3.12.0
However if I do this in a Dockerfile it still errors:
Step 6/9 : RUN npm install --save curlconverter#3.12.0
---> Running in 2f5e6c7af7ce
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git#github.com/NickCarneiro/yargs.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-05-17T14_06_02_821Z-debug.log
The command '/bin/sh -c npm install --save curlconverter#3.12.0' returned a non-zero code: 1
What is the problem here and is there any way to install and use the package?

I don't know what going on

I just want to know what is going, whenever I download some react code from github (because I want to check the output for inspiration) and run it using npm start, I see this in the terminal.
What should I do?
sh: react-scripts: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! todo-react#0.1.0 start: `react-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the todo-react#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/markcornejo/.npm/_logs/2021-05-20T09_35_52_922Z-debug.log
Marks-Air:todo-react-master markcornejo$
Run npm install before npm start, to ensure all the dependencies are installed.

travis-ci fails on typings install

I'm trying to get travis-ci going on my angular2 project, which uses npm to install typings, but travis-ci fails on typings install.
error
npm ERR! Linux 3.13.0-40-generic
npm ERR! argv "/home/travis/build/borysn/spring-boot-angular2/src/main/web/node/node-v6.2.0-linux-x64/bin/node" "/home/travis/build/borysn/spring-boot-angular2/src/main/web/node_modules/npm/bin/npm-cli.js" "install"
npm ERR! node v6.2.0
npm ERR! npm v3.9.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! spring-boot-angular2#0.0.1-SNAPSHOT postinstall: `typings install`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the spring-boot-angular2#0.0.1-SNAPSHOT postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the spring-boot-angular2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs spring-boot-angular2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls spring-boot-angular2
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/travis/build/borysn/spring-boot-angular2/src/main/web/npm-debug.log
:npmInstall FAILED
There were changes in typings 1.0 that I missed, make sure to read through updating from 0.x to 1.0