Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sails-mysql-transactions installation fails in postinstall stage #65

Open
annuay opened this issue Jun 7, 2017 · 3 comments
Open

Sails-mysql-transactions installation fails in postinstall stage #65

annuay opened this issue Jun 7, 2017 · 3 comments

Comments

@annuay
Copy link

annuay commented Jun 7, 2017

NPM error while running the postinstall script.

Details:
my-pc$ npm i sails && npm i sails-mysql-transactions
npm WARN gentlyRm not removing /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails/node_modules/.bin/grunt as it wasn't installed by /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails/node_modules/grunt-cli

sails@0.12.13 preinstall /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails
node ./lib/preinstall_npmcheck.js

Sails.js Installation: Checking npm-version successful

newman@2.1.2 preinstall /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails-mysql-transactions/node_modules/newman
node ./scripts/preinstall.js


  •                       Notice                               *
    

  • If you are using Node v0.12 or v0.10, you should install *
  • Newman v1.x: *
  •                                                            *
    
  •               npm install newman@1                         *
    
  •                                                            *
    
  • Deprecation: Newman v3 onwards will deprecate the use of DOM *
  • related libraries, such as JQuery and Backbone. For details, *
  • check https://www.getpostman.com/docs/sandbox *

sails-mysql-transactions@0.8.3-hotfix.1 postinstall /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails-mysql-transactions
scripts/postinstall.sh

sails-mysql-transactions: WARNING - detected sails-mysql.
sails-mysql-transactions: You may face unexpected behaviour.
sails-mysql-transactions: Preferably remove sails-mysql from packages before using this in production.

sails-mysql-transactions: Injecting waterline into sails...
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated geojsonhint@1.2.1: This module is now under the @mapbox namespace: install @mapbox/geojsonhint instead
npm WARN deprecated native-or-bluebird@1.1.2: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

typechecker@2.0.8 preinstall /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails/node_modules/extendr/node_modules/typechecker
node ./cyclic.js

typechecker@2.0.8 preinstall /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails/node_modules/extract-opts/node_modules/typechecker
node ./cyclic.js

npm WARN prefer global jsonlint-lines@1.7.1 should be installed with -g
npm notice created a lockfile as package-lock.json. You should commit this file.
added 752 packages, removed 1 package and updated 1 package in 99.333s
npm WARN checkPermissions Missing write access to /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails-mysql-transactions/waterline/node_modules/async
npm WARN checkPermissions Missing write access to /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails-mysql-transactions/waterline/node_modules/bluebird
npm WARN checkPermissions Missing write access to /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails-mysql-transactions/waterline/node_modules
npm ERR! path /Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails-mysql-transactions/waterline/node_modules/async
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/Users/annuay/Kapitalwise/sailsmysqltesting/versions_of_code/kw_web_services_version_3/node_modules/sails-mysql-transactions/waterline/node_modules/async'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/annuay/.npm/_logs/2017-06-07T14_22_18_390Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! sails-mysql-transactions@0.8.3-hotfix.1 postinstall: scripts/postinstall.sh
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the sails-mysql-transactions@0.8.3-hotfix.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/annuay/.npm/_logs/2017-06-07T14_22_34_986Z-debug.log

@andrei-tara
Copy link

same issue here :(

@annuay
Copy link
Author

annuay commented Nov 14, 2017

I do not have a real fix to the issue. However, I feel that it is related to npm version. I downgraded the npm version to 4.1.2 (and node 8.1.1) and it installed fine.

@andrei-tara
Copy link

andrei-tara commented Nov 14, 2017

It really sucks because I need transactional support and I can't change the node version :|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants