Giter Club home page Giter Club logo

webpack-sftp-client's Issues

Error

new WebpackSftpClient({
      port: '2222',
      host: 'xxx',
      username: 'xxx',
      password: 'xxx',
      path: './build/',
      remotePath: '/public_html/react/',
      // Show details of uploading for files
      verbose: true
    }),

Produces:

Transfer ./build/index.html => /public_html/react/index.html
Transfer ./build/main.7b35982842fa71b3c204.js => /public_html/react/main.7b35982842fa71b3c204.js/main.7b35982842fa71b3c204.js
C:\p\berton-react\node_modules\ssh2-streams\lib\sftp.js:878
    throw new Error('handle is not a Buffer');
    ^

Error: handle is not a Buffer
    at SFTPStream.writeData (C:\p\berton-react\node_modules\ssh2-streams\lib\sftp.js:878:11)
    at SFTPWrapper.write (C:\p\berton-react\node_modules\ssh2\lib\SFTPWrapper.js:48:23)
    at C:\p\berton-react\node_modules\scp2\lib\client.js:216:18
    at FSReqWrap.wrapper [as oncomplete] (fs.js:681:17)

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `cross-env NODE_ENV=production webpack  --progress`
npm ERR! Exit status 1

路径

本地上传的路径path: '../dist/'总是出错,总是前面少一个路径地址

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.