npm не могу найти пакет обмена - PullRequest
0 голосов
/ 12 апреля 2020

Basi c config на моем компьютере

$  npm -v
3.5.2
$ uname -a
Linux ubuntu 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Мой пакет. json имеет

{
  "name": "confusion",
  "version": "1.0.0",
  "description": "This is a website for Ristorante Con Fusion",
  "main": "index.html",
  "scripts": {
    "start": "npm run watch:all",
    "test": "echo \"Error: no test specified\" && exit 1",
    "lite": "lite-server",
    "scss": "node-sass -o css/ css/",
    "watch:scss": "onchange 'css/*.scss' -- npm run scss",
    "watch:all": "parallelshell 'npm run watch:scss' 'npm run lite'"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "lite-server": "^2.3.0",
    "node-sass": "^4.7.2",
    "onchange": "^3.3.0",
    "parallelshell": "^3.0.1"
  },
  "dependencies": {
    "bootstrap": "^4.0.0",
    "font-awesome": "^4.7.0",
    "jquery": "^3.3.1",
    "popper.js": "^1.12.9"
  }
}

И я уже установил onchange

$ npm list | grep onchange
├─┬ onchange@3.3.0

Но я получил следующие ошибки. Как мне их разрешить?

$ npm start

> confusion@1.0.0 start /home/oscp/education/web_application/Full-Stack_Web_Development_with_React_Specialization/Front-End_Web_UI_Frameworks_and_Tools_Bootstrap_4/Bootstrap4/conFusion
> npm run watch:all


> confusion@1.0.0 watch:all /home/oscp/education/web_application/Full-Stack_Web_Development_with_React_Specialization/Front-End_Web_UI_Frameworks_and_Tools_Bootstrap_4/Bootstrap4/conFusion
> parallelshell 'npm run watch:scss' 'npm run lite'


> confusion@1.0.0 watch:scss /home/oscp/education/web_application/Full-Stack_Web_Development_with_React_Specialization/Front-End_Web_UI_Frameworks_and_Tools_Bootstrap_4/Bootstrap4/conFusion
> onchange 'css/*.scss' -- npm run scss

sh: 1: onchange: not found

npm ERR! Linux 5.0.0-32-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "watch:scss"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! confusion@1.0.0 watch:scss: `onchange 'css/*.scss' -- npm run scss`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the confusion@1.0.0 watch:scss script 'onchange 'css/*.scss' -- npm run scss'.
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 confusion package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     onchange 'css/*.scss' -- npm run scss
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs confusion
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls confusion
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/oscp/education/web_application/Full-Stack_Web_Development_with_React_Specialization/Front-End_Web_UI_Frameworks_and_Tools_Bootstrap_4/Bootstrap4/conFusion/npm-debug.log

npm ERR! Linux 5.0.0-32-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "watch:all"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! confusion@1.0.0 watch:all: `parallelshell 'npm run watch:scss' 'npm run lite'`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the confusion@1.0.0 watch:all script 'parallelshell 'npm run watch:scss' 'npm run lite''.
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 confusion package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     parallelshell 'npm run watch:scss' 'npm run lite'
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs confusion
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls confusion
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/oscp/education/web_application/Full-Stack_Web_Development_with_React_Specialization/Front-End_Web_UI_Frameworks_and_Tools_Bootstrap_4/Bootstrap4/conFusion/npm-debug.log

npm ERR! Linux 5.0.0-32-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! confusion@1.0.0 start: `npm run watch:all`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the confusion@1.0.0 start script 'npm run watch:all'.
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 confusion package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run watch:all
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs confusion
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls confusion
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/oscp/education/web_application/Full-Stack_Web_Development_with_React_Specialization/Front-End_Web_UI_Frameworks_and_Tools_Bootstrap_4/Bootstrap4/conFusion/npm-debug.log
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...