sails-mysql-transactions icon indicating copy to clipboard operation
sails-mysql-transactions copied to clipboard

Sails-mysql-transactions installation fails in postinstall stage

Open annuay opened this issue 7 years ago • 3 comments

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

[email protected] 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

[email protected] 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 *

[email protected] 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 [email protected]: Use uuid module instead npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 npm WARN deprecated [email protected]: This module is now under the @mapbox namespace: install @mapbox/geojsonhint instead npm WARN deprecated [email protected]: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead. npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

[email protected] 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

[email protected] 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 [email protected] 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! [email protected] postinstall: scripts/postinstall.sh npm ERR! Exit status 254 npm ERR! npm ERR! Failed at the [email protected] 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

annuay avatar Jun 07 '17 14:06 annuay

same issue here :(

andrei-tara avatar Nov 14 '17 10:11 andrei-tara

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.

annuay avatar Nov 14 '17 10:11 annuay

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

andrei-tara avatar Nov 14 '17 10:11 andrei-tara