万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

  • ・資産運用おすすめ
    10万円は1000円くらい利益
    資産運用ブログ アセマネ
    • ・寄付お願いします
      YENTEN:YYzNPzdsZWqr5THWAdMrKDj7GT8ietDc2W
      BitZenny:ZfpUbVya8MWQkjjGJMjA7P9pPkqaLnwPWH
      c0ban:8KG95GXdEquNpPW8xJAJf7nn5kbimQ5wj1
      Skycoin:KMqcn7x8REwwzMHPi9fV9fbNwdofYAWKRo

    ExpressをCloud FunctionsでのURL

    Call functions via HTTP requests  |  Firebase

    https://us-central1-<project-id>.cloudfunctions.net/widgets/<id>

    widgetsはURLの一部になる widgetsって変数。

    // Expose Express API as a single Cloud Function:
    exports.widgets = functions.https.onRequest(app);

    npmの変なエラー

    npm install -g firebase-tools --force 
    npm WARN using --force I sure hope you know what you are doing.
    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
    npm ERR! code EEXIST
    npm ERR! path /usr/local/bin/firebase
    npm ERR! Refusing to delete /usr/local/bin/firebase: node_modules/npm/bin/npm-cli.js symlink target is not controlled by npm /usr/local/bin
    npm ERR! File exists: /usr/local/bin/firebase
    npm ERR! Remove the existing file and try again, or run npm
    npm ERR! with --force to overwrite files recklessly.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/shinriyo/.npm/_logs/2021-02-07T07_23_11_399Z-debug.log

    rm -rf /usr/local/bin/firebase