transport-tracker-server@1.0.0 main / var / www / html / transport-tracker / backend

时间:2019-02-27 21:48:03

标签: node.js firebase google-maps tracker

您好,我对Google的示例transport-tracker有疑问。我按照教程中介绍的步骤进行操作,但是在尝试安装依赖项时遇到阻塞。 节点版本:v11.10.0 npm版本:6.7.0

    root@******:/var/www/html/transport-tracker/backend# npm install    
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it!
npm notice created a lockfile as package-lock.json. You should commit this file.
added 11 packages from 6 contributors, removed 11 packages and audited 3175 packages in 8.887s
found 105 vulnerabilities (5 low, 84 moderate, 15 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details
root@**********:/var/www/html/transport-tracker/backend# npm run main

> transport-tracker-server@1.0.0 main /var/www/html/transport-tracker/backend
> node main.js

internal/modules/cjs/loader.js:615
    throw err;
    ^

Error: Cannot find module '/var/www/html/transport-tracker/backend/node_modules/sqlite3/lib/binding/node-v67-linux-x64/node_sqlite3.node'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15)
    at Function.Module._load (internal/modules/cjs/loader.js:539:25)
    at Module.require (internal/modules/cjs/loader.js:667:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/var/www/html/transport-tracker/backend/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (internal/modules/cjs/loader.js:738:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
    at Module.load (internal/modules/cjs/loader.js:630:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
    at Function.Module._load (internal/modules/cjs/loader.js:562:3)
    at Module.require (internal/modules/cjs/loader.js:667:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/var/www/html/transport-tracker/backend/gtfs.js:19:38)
    at Module._compile (internal/modules/cjs/loader.js:738:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
    at Module.load (internal/modules/cjs/loader.js:630:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! transport-tracker-server@1.0.0 main: `node main.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the transport-tracker-server@1.0.0 main 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/2019-02-27T20_24_10_599Z-debug.log
root@******:/var/www/html/transport-tracker/backend# npm -v
6.7.0
root@******:/var/www/html/transport-tracker/backend# node -b
node: bad option: -b
root@******:/var/www/html/transport-tracker/backend# node -v
v11.10.0
root@******:/var/www/html/transport-tracker/backend# 

0 个答案:

没有答案