У меня есть проект nodejs
, который я создал несколько месяцев назад и оставил его. В то время он работал нормально.npm модули не установлены должным образом
Теперь мне нужен этот проект, но модули nodejs не устанавливаются должным образом (как я и ожидаю). говоря что-то
Я использую следующие модули
var Twitter = require('twitter');
var five = require("johnny-five");
Я первый попытался установить npm install johnny-five
в моем рабочем каталоге (локально), и он дал мне эту ошибку
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
npm WARN addRemoteGit at E (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
npm WARN addRemoteGit at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:93:16
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit jacobrosenthal/node-pre-gyp-github#production resetting remote C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jacobrosenthal-node-pre-gyp-github-git-production-00f1b2658a8ab0261b1b6e8aa994ae37 because of error: { [Error: not found: git] code: 'ENOGIT' }
так я бегу npm install -g twitter
& npm install -g johnny-five
. Он установлен node_modules в следующем каталог C:\Users\skyse\AppData\Roaming\npm\node_modules
Но когда я бег моей программки node execute.js
это дает мне ошибки недостающих модули
Я проверил, что модули я использую установлены
я получил сообщение об ошибке для request
модуля, так что я установил тогда он дал мне ошибку для serialport
и теперь этот модуль не устанавливается
Я попытался Переустановите его (после ручного удаления джонни-пять раз модуль э)
Это установки, но и дает кучу предупреждений & ошибки
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
npm WARN addRemoteGit at E (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
npm WARN addRemoteGit at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:93:16
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit jacobrosenthal/node-pre-gyp-github#production resetting remote C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jacobrosenthal-node-pre-gyp-github-git-production-00f1b2658a8ab0261b1b6e8aa994ae37 because of error: { [Error: not found: git] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/jacobrosenthal/node-pre-gyp-github.git C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jacobrosenthal-node-pre-gyp-github-git-production-00f1b2658a8ab0261b1b6e8aa994ae37: undefined
npm ERR! git clone --template=C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/jacobrosenthal/node-pre-gyp-github.git C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jacobrosenthal-node-pre-gyp-github-git-production-00f1b2658a8ab0261b1b6e8aa994ae37: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
npm WARN addRemoteGit at E (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
npm WARN addRemoteGit at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:93:16
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit jacobrosenthal/node-pre-gyp-github#production resetting remote C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-jacobrosenthal-node-pre-gyp-github-git-production-1e8dd7eab6415a0b31fc9e88e23213e9 because of error: { [Error: not found: git] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/jacobrosenthal/node-pre-gyp-github.git C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-jacobrosenthal-node-pre-gyp-github-git-production-1e8dd7eab6415a0b31fc9e88e23213e9: undefined
npm ERR! git clone --template=C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror https://github.com/jacobrosenthal/node-pre-gyp-github.git C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-https-github-com-jacobrosenthal-node-pre-gyp-github-git-production-1e8dd7eab6415a0b31fc9e88e23213e9: undefined
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit at F (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:78:19)
npm WARN addRemoteGit at E (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:82:29)
npm WARN addRemoteGit at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\which\which.js:93:16
npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit jacobrosenthal/node-pre-gyp-github#production resetting remote C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jacobrosenthal-node-pre-gyp-github-git-production-d32d5d69965585ea64fc38a162bde390 because of error: { [Error: not found: git] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:jacobrosenthal/node-pre-gyp-github.git C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jacobrosenthal-node-pre-gyp-github-git-production-d32d5d69965585ea64fc38a162bde390: undefined
npm ERR! git clone --template=C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror [email protected]:jacobrosenthal/node-pre-gyp-github.git C:\Users\skyse\AppData\Roaming\npm-cache\_git-remotes\git-github-com-jacobrosenthal-node-pre-gyp-github-git-production-d32d5d69965585ea64fc38a162bde390: undefined
npm WARN install Couldn't install optional dependency: not found: git
C:\Users\skyse\AppData\Roaming\npm
└─┬ [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
У вас установлена 'git' и находится ли она в вашем' PATH'? – Brandon
У меня есть git. Какой путь? Когда он работал несколько месяцев назад, у меня тогда не было git. –