{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails/issues/3779","repository_url":"https://api.github.com/repos/balderdashy/sails","labels_url":"https://api.github.com/repos/balderdashy/sails/issues/3779/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails/issues/3779/comments","events_url":"https://api.github.com/repos/balderdashy/sails/issues/3779/events","html_url":"https://github.com/balderdashy/sails/issues/3779","id":164013595,"number":3779,"title":"Travis build failing while installing sails","user":{"login":"aayush-practo","id":14071820,"avatar_url":"https://avatars.githubusercontent.com/u/14071820?v=3","gravatar_id":"","url":"https://api.github.com/users/aayush-practo","html_url":"https://github.com/aayush-practo","followers_url":"https://api.github.com/users/aayush-practo/followers","following_url":"https://api.github.com/users/aayush-practo/following{/other_user}","gists_url":"https://api.github.com/users/aayush-practo/gists{/gist_id}","starred_url":"https://api.github.com/users/aayush-practo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayush-practo/subscriptions","organizations_url":"https://api.github.com/users/aayush-practo/orgs","repos_url":"https://api.github.com/users/aayush-practo/repos","events_url":"https://api.github.com/users/aayush-practo/events{/privacy}","received_events_url":"https://api.github.com/users/aayush-practo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-06T07:17:15Z","updated_at":"2016-07-06T11:56:20Z","closed_at":"2016-07-06T11:56:20Z","body":"<!--\r\n======================================================\r\nHELLO, and welcome to the (experimental) Sailsbot\r\nissue-submission system.  If you encounter any\r\nproblems with this system, please contact\r\nsgress454@treeline.io\r\n\r\nFIRST THINGS FIRST: before posting, please carefully \r\nread the contribution guide (http://bit.ly/sails-issue-guide), \r\nparticularly if this is a security issue or an issue of a \r\nnon-technical nature (Github org issues, code of conduct\r\nissues, etc.).  Those should be sent directly to inquiries@treeline.io.\r\n\r\nNOW THEN: please fill out the following info \r\n(Don't change text between **) \r\n======================================================\r\n### BEGIN VERSION INFO ###\r\n-->\r\n\r\n**Sails version**: 0.12.1\r\n**Node version**:4.4.4\r\n**NPM version**:2.15.1\r\n**Operating system**:Ubuntu 14.04.3 LTS\r\n\r\n<!-- \r\n### END VERSION INFO ###\r\n======================================================\r\nGREAT! - Now read carefully \r\n(Sailsbot will know if you don't)!  \r\n======================================================\r\n\r\nBefore you submit an issue for Sails, please make sure you have read the issue contribution guide (http://bit.ly/sails-issue-guide) carefully, and then verify the following by typing an X in between each set of [ ] brackets below (don't make any other changes to the text!):\r\n\r\n### BEGIN PLEDGE ###\r\n- [X] I am experiencing a concrete technical issue (aka a bug) with Sails (ideas and feature proposals should follow the guide for proposing features and enhancements (http://bit.ly/sails-feature-guide), which involves making a pull request).  If you're not 100% certain whether it's a bug or not, that's okay--you may continue.  The worst that can happen is that the issue will be closed and we'll point you in the right direction.\r\n\r\n- [X] I am not asking a question about how to use Sails or about whether or not Sails has a certain feature (please refer to the documentation(http://sailsjs.org), or post on http://stackoverflow.com, our Google Group (http://bit.ly/sails-google-group) or our live chat (https://gitter.im/balderdashy/sails).\r\n\r\n- [X] I have already searched for related issues, and found none open (if you found a related _closed_ issue, please link to it in your post).\r\n\r\n- [X] My issue title is concise, on-topic and polite (\"jst.js being removed from layout.ejs on lift\" is good; \"templates dont work\" or \"why is sails dumb\" are not so good).\r\n\r\n- [X] I have tried all the following (if relevant) and my issue remains:\r\n  - Make sure you have the right app lifted.\r\n  - Make sure you've killed the Sails server with CTRL+C and started it again.\r\n  - Make sure you closed any open browser tabs pointed at localhost before starting Sails.\r\n  - Make sure you do not have any other Sails apps running in other terminal windows.\r\n  - Make sure the app you are using to reproduce the issue has a clean node_modules/ directory, meaning:\r\n    * no dependencies are linked (e.g. you haven't run npm link foo)\r\n    * that you haven't made any inline changes to files in the node_modules/ folder\r\n    * that you don't have any weird global dependency loops. The easiest way to double-check any of the above, if you aren't sure, is to run: rm -rf node_modules && npm cache clear && npm install.\r\n\r\nand finally...\r\n- [X] **I can provide steps to reproduce this issue that others can follow.**\r\n\r\nIdeally, this involves creating a new repo that demonstrates the problem (see instructions at http://bit.ly/sails-issue-repro).  Even though your issue may seem so simple to reproduce that a new repo is unnecessary, you'd be surprised how many solutions present themselves when you start from `sails new` and attempt to recreate your issue from scratch in a new app.  This ensures that the real issue isn't in your user code (a forgotten policy file, perhaps?) or in a third-party module.  If you're absolutely _convinced_ that a new repo is unnecessary, provide clear, concise and _specific_ steps to reproduce the problem in your post (not \"create a model then do blueprint create\").\r\n### END PLEDGE ###\r\n\r\nOKAY--THANKS FOR READING!  Continue posting details of your issue below. -->\r\n<hr/>\r\n\r\nI am using node@4.4.4, npm@2.15.1 and nvm@0.31.0. \r\nPackage json has following scripts:\r\n\r\n```javascript\r\n\"scripts\": {\r\n    \"predeploy\": \"npm install -g\",\r\n    \"preinstall\": \"npm remove sails-mysql\",\r\n    \"start\": \"BLUEBIRD_W_FORGOTTEN_RETURN=0 sails lift\",\r\n    \"postinstall\": \"npm install sails-mysql-transactions@0.8.0\"\r\n  },\r\n```\r\n\r\nTravis build is throwing following error while installing sails.\r\n```javascript\r\n> sails@0.12.1 preinstall /home/travis/build/practo/consumer-payments-api/node_modules/sails\r\n> node ./lib/preinstall_npmcheck.js\r\nSails.js Installation: Checking npm-version successful\r\nnpm WARN deprecated wrench@1.5.9: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.\r\nnpm WARN deprecated native-or-bluebird@1.1.2: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.\r\nnpm WARN optional dep failed, continuing fsevents@1.0.12\r\nnpm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.\r\nnpm WARN deprecated lodash@2.4.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.\r\nnpm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!\r\n> kerberos@0.0.11 install /home/travis/build/practo/consumer-payments-api/node_modules/db-migrate/node_modules/mongodb/node_modules/kerberos\r\n> (node-gyp rebuild 2> builderror.log) || (exit 0)\r\nmake: Entering directory `/home/travis/build/practo/consumer-payments-api/node_modules/db-migrate/node_modules/mongodb/node_modules/kerberos/build'\r\n  CXX(target) Release/obj.target/kerberos/lib/kerberos.o\r\nmake: Leaving directory `/home/travis/build/practo/consumer-payments-api/node_modules/db-migrate/node_modules/mongodb/node_modules/kerberos/build'\r\n> bson@0.2.22 install /home/travis/build/practo/consumer-payments-api/node_modules/db-migrate/node_modules/mongodb/node_modules/bson\r\n> (node-gyp rebuild 2> builderror.log) || (exit 0)\r\nmake: Entering directory `/home/travis/build/practo/consumer-payments-api/node_modules/db-migrate/node_modules/mongodb/node_modules/bson/build'\r\n  CXX(target) Release/obj.target/bson/ext/bson.o\r\nmake: Leaving directory `/home/travis/build/practo/consumer-payments-api/node_modules/db-migrate/node_modules/mongodb/node_modules/bson/build'\r\n> sqlite3@3.1.4 install /home/travis/build/practo/consumer-payments-api/node_modules/db-migrate/node_modules/sqlite3\r\n> node-pre-gyp install --fallback-to-build\r\n[sqlite3] Success: \"/home/travis/build/practo/consumer-payments-api/node_modules/db-migrate/node_modules/sqlite3/lib/binding/node-v46-linux-x64/node_sqlite3.node\" is installed via remote\r\nnpm ERR! fetch failed https://registry.npmjs.org/escape-regexp/-/escape-regexp-0.0.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/machinepack-urls/-/machinepack-urls-3.1.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/escape-regexp/-/escape-regexp-0.0.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/machinepack-urls/-/machinepack-urls-3.1.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/escape-regexp/-/escape-regexp-0.0.1.tgz\r\nnpm ERR! fetch failed https://registry.npmjs.org/machinepack-urls/-/machinepack-urls-3.1.1.tgz\r\nnpm ERR! Linux 3.13.0-63-generic\r\nnpm ERR! argv \"/home/travis/.nvm/versions/node/v4.4.4/bin/node\" \"/home/travis/.nvm/versions/node/v4.4.4/bin/npm\" \"install\"\r\nnpm ERR! node v4.4.4\r\nnpm ERR! npm  v2.15.1\r\nnpm ERR! fetch failed with status code 502\r\nnpm ERR! \r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/travis/build/practo/consumer-payments-api/npm-debug.log\r\nThe command \"eval npm install \" failed. Retrying, 2 of 3.\r\n> consumer-payments@0.0.1 preinstall /home/travis/build/practo/consumer-payments-api\r\n> npm cache -f clean && npm remove sails-mysql\r\nnpm WARN using --force I sure hope you know what you are doing.\r\nnpm WARN uninstall not installed in /home/travis/build/practo/consumer-payments-api/node_modules: \"sails-mysql\"\r\n> sails@0.12.1 preinstall /home/travis/build/practo/consumer-payments-api/node_modules/sails\r\n> node ./lib/preinstall_npmcheck.js\r\nSails.js Installation: Checking npm-version successful\r\nnpm WARN deprecated native-or-bluebird@1.1.2: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.\r\nnpm WARN optional dep failed, continuing fsevents@1.0.12\r\nnpm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.\r\nnpm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN deprecated lodash@2.4.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.\r\nnpm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.\r\nnpm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!\r\nnpm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm ERR! fetch failed https://registry.npmjs.org/escape-regexp/-/escape-regexp-0.0.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/machinepack-urls/-/machinepack-urls-3.1.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/escape-regexp/-/escape-regexp-0.0.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/machinepack-urls/-/machinepack-urls-3.1.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/escape-regexp/-/escape-regexp-0.0.1.tgz\r\nnpm ERR! fetch failed https://registry.npmjs.org/machinepack-urls/-/machinepack-urls-3.1.1.tgz\r\nnpm ERR! Linux 3.13.0-63-generic\r\nnpm ERR! argv \"/home/travis/.nvm/versions/node/v4.4.4/bin/node\" \"/home/travis/.nvm/versions/node/v4.4.4/bin/npm\" \"install\"\r\nnpm ERR! node v4.4.4\r\nnpm ERR! npm  v2.15.1\r\nnpm ERR! fetch failed with status code 502\r\nnpm ERR! \r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/travis/build/practo/consumer-payments-api/npm-debug.log\r\nThe command \"eval npm install \" failed. Retrying, 3 of 3.\r\n> consumer-payments@0.0.1 preinstall /home/travis/build/practo/consumer-payments-api\r\n> npm cache -f clean && npm remove sails-mysql\r\nnpm WARN using --force I sure hope you know what you are doing.\r\nnpm WARN uninstall not installed in /home/travis/build/practo/consumer-payments-api/node_modules: \"sails-mysql\"\r\n> sails@0.12.1 preinstall /home/travis/build/practo/consumer-payments-api/node_modules/sails\r\n> node ./lib/preinstall_npmcheck.js\r\nSails.js Installation: Checking npm-version successful\r\nnpm WARN deprecated native-or-bluebird@1.1.2: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.\r\nnpm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.\r\nnpm WARN optional dep failed, continuing fsevents@1.0.12\r\nnpm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN deprecated lodash@2.4.1: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.\r\nnpm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!\r\nnpm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.\r\nnpm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm ERR! fetch failed https://registry.npmjs.org/escape-regexp/-/escape-regexp-0.0.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/machinepack-urls/-/machinepack-urls-3.1.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/escape-regexp/-/escape-regexp-0.0.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/machinepack-urls/-/machinepack-urls-3.1.1.tgz\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502\r\nnpm ERR! fetch failed https://registry.npmjs.org/escape-regexp/-/escape-regexp-0.0.1.tgz\r\nnpm ERR! fetch failed https://registry.npmjs.org/machinepack-urls/-/machinepack-urls-3.1.1.tgz\r\nnpm ERR! Linux 3.13.0-63-generic\r\nnpm ERR! argv \"/home/travis/.nvm/versions/node/v4.4.4/bin/node\" \"/home/travis/.nvm/versions/node/v4.4.4/bin/npm\" \"install\"\r\nnpm ERR! node v4.4.4\r\nnpm ERR! npm  v2.15.1\r\nnpm ERR! fetch failed with status code 502\r\nnpm ERR! \r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/travis/build/practo/consumer-payments-api/npm-debug.log\r\nThe command \"eval npm install \" failed 3 times.\r\nThe command \"npm install \" failed and exited with 1 during .\r\n```\r\nPlease provide the abrupt solution"},"comment":{"url":"https://api.github.com/repos/balderdashy/sails/issues/comments/230751319","html_url":"https://github.com/balderdashy/sails/issues/3779#issuecomment-230751319","issue_url":"https://api.github.com/repos/balderdashy/sails/issues/3779","id":230751319,"user":{"login":"aayush-practo","id":14071820,"avatar_url":"https://avatars.githubusercontent.com/u/14071820?v=3","gravatar_id":"","url":"https://api.github.com/users/aayush-practo","html_url":"https://github.com/aayush-practo","followers_url":"https://api.github.com/users/aayush-practo/followers","following_url":"https://api.github.com/users/aayush-practo/following{/other_user}","gists_url":"https://api.github.com/users/aayush-practo/gists{/gist_id}","starred_url":"https://api.github.com/users/aayush-practo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aayush-practo/subscriptions","organizations_url":"https://api.github.com/users/aayush-practo/orgs","repos_url":"https://api.github.com/users/aayush-practo/repos","events_url":"https://api.github.com/users/aayush-practo/events{/privacy}","received_events_url":"https://api.github.com/users/aayush-practo/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T11:56:20Z","updated_at":"2016-07-06T11:56:20Z","body":"It got solved on its own! "}}
{"actor":{"display_login":"aayush-practo"}}