robincsamuel / ghost-google-drive

Google drive storage for ghost
MIT License
68 stars 26 forks source link

Alot of warning as missing peer dependencies? #19

Open acollien opened 5 years ago

acollien commented 5 years ago

On first install command.

mac:ghostblog adtc$ ghost stop
✔ Stopping Ghost
mac:ghostblog adtc$ cd current
mac:current adtc$ npm install ghost-google-drive
npm WARN deprecated mimelib@0.2.19: This project is unmaintained
npm WARN deprecated nomnom@1.5.2: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated mailcomposer@0.2.12: This project is unmaintained
npm WARN rm not removing /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/.bin/rimraf as it wasn't installed by /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/rimraf
npm WARN rm not removing /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/.bin/nopt as it wasn't installed by /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/nopt
npm WARN rm not removing /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/.bin/mkdirp as it wasn't installed by /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/mkdirp
npm WARN rm not removing /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/.bin/extract-zip as it wasn't installed by /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/@tryghost/extract-zip

> dtrace-provider@0.8.7 install /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

  ACTION binding_gyp_ndtp_target_build_ndtp .
  TOUCH Release/obj.target/ndtp.stamp

> sqlite3@4.0.6 install /Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/knex-migrator/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download 
[sqlite3] Success: "/Users/adtc/Documents/ghostblog/versions/2.18.2/node_modules/knex-migrator/node_modules/sqlite3/lib/binding/node-v64-darwin-x64/node_sqlite3.node" is installed via remote
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN bookshelf@0.14.2 requires a peer of knex@>=0.6.10 <0.15.0 but none is installed. You must install peer dependencies yourself.
npm WARN express-brute@1.0.1 requires a peer of express@4.x but none is installed. You must install peer dependencies yourself.

+ ghost-google-drive@2.0.1
added 257 packages from 131 contributors, removed 100 packages and updated 642 packages in 51.275s

on last command (after copying all files cp -vR current/node_modules/ghost-google-drive content/adapters/storage/ghost-google-drive) running

mac:ghostblog adtc$ cd content/adapters/storage/ghost-google-drive
mac:ghost-google-drive adtc$ npm install
npm WARN saveError ENOENT: no such file or directory, open '/Users/adtc/Documents/ghostblog/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/adtc/Documents/ghostblog/package.json'
npm WARN ghostblog No description
npm WARN ghostblog No repository field.
npm WARN ghostblog No README data
npm WARN ghostblog No license field.

up to date in 1.064s

Then ghost won't restart.

mac:ghostblog adtc$ ghost start
✔ Checking current folder permissions
✔ Validating config
✔ Checking memory availability
✖ Starting Ghost
A GhostError occurred.

Message: Ghost process exited with code: 0

Debug Information:
    OS: Mac OS X, v10.14.3
    Node Version: v10.15.3
    Ghost-CLI Version: 1.9.9
    Environment: production
    Command: 'ghost start'

Additional log info available in: /Users/adtc/.ghost/logs/ghost-cli-debug-2019-03-26T11_06_25_667Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to https://docs.ghost.org/api/ghost-cli/ for troubleshooting.
sangnu commented 5 years ago

Hi, fix:

Copy folder with files "content/adapters/storage/ghost-google-drive" to "/core/server/adapters/storage/" & work :-)

mattguide commented 4 years ago

Old topic, but this may help: If your problem is dependencies, you may also use the dependency list to install everything: cd core/adapters/storage/ghost-google-drive npm install That should give you everything you need.

robincsamuel commented 4 years ago

I'm not sure if there is a better way to handle the adaptor installation. Ghost has evolved a lot and I'm yet to update. It will be really great if someone can help me to organize the instructions better to make the installation easier.