Node: Installing Sqlite3 offline in your Mac

Source: Internet
Author: User

Recently in the installation of Db-migrate, there is a dependency package sqlite3 how all can not be installed, check down should be due to Node_sqlit3.node file can not be downloaded from Amazon (source installation also error, did not study the reason). Therefore, it is intended to download the installation package installation directly, the following method:

  1. Enter Https://registry.npmjs.org/sqlite3 in the browser

  2. Find http://registry.npmjs.org/sqlite3/-/sqlite3-x.x.x.tgz and download and unzip.

  3. Download the https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.1/node-v46-darwin-x64.tar.gz and unzip the node The Sqlite3.node is saved to the nodemodules/sqlite3/lib/binding/node-v46-darwin-x64 directory.

  4. Now that the offline installation is complete, run NPM install db-migrate-g directly, and you can install it successfully.

Above

Original: http://lovewindy.com/node-chi-xian-an-zhuang-sqlite3/

Node: Installing Sqlite3 offline in your Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.