I followed instruction in https://github.com/sharetribe/sharetribe to install. It works on VM but when I followed exact instruction on AWS. It gave me the following error. I tried both latest and v6.1.0 release. They both failed the same way, Error log is shown below. I will appreciate any help. thanks.
ubuntu@ip-172-31-28-102:~/sharetribe$ npm install
undefined postinstall /home/ubuntu/sharetribe
cd client && npm install
npm WARN deprecated babel-preset-latest@6.14.0: preset-latest accomplishes the same task as babel-preset-env. Please install it with ānpm install babel-preset-env --save-devā. ā{ āpresetsā: [ālatestā] }ā to ā{ āpresetsā: [āenvā] }ā. For more info, please check the docs: http://babeljs.io/docs/plugins/preset-env . And let us know how youāre liking Babel at @babeljs on
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
npm WARN prefer global colorguard@1.2.0 should be installed with -g
npm WARN prefer global node-gyp@3.5.0 should be installed with -g
That looks like a bit cryptic error message without much hint where the error might beā¦
When you run npm install in the root, it doesnāt actually do much. It only cds to the client directory and runs npm install there. So you could try if it helps if you manually cd client and then run npm install in the client directory. Also, might be good idea to clean node_modules directories.
50 silly executeActions Finishing
51 silly rollbackFailedOptional Starting
52 silly rollbackFailedOptional Finishing
53 silly install runPostinstallTopLevelLifecycles
54 silly build sharetribe
55 info linkStuff !invalid#1
56 silly linkStuff !invalid#1 has /home/ubuntu as its parent node_modules
57 verbose linkBins !invalid#1
58 verbose linkMans !invalid#1
59 silly install sharetribe /home/ubuntu/sharetribe/sharetribe-b1a1c93b
60 info lifecycle undefined~install: undefined
61 silly lifecycle undefined~install: no script for install, continuing
62 silly postinstall sharetribe /home/ubuntu/sharetribe/sharetribe-b1a1c93b
63 info lifecycle undefined~postinstall: undefined
64 verbose lifecycle undefined~postinstall: unsafe-perm in lifecycle true
65 verbose lifecycle undefined~postinstall: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/ubuntu/sharetribe/node_modules/.bin:/home/ubuntu/.rvm/gems/ruby-2.3.1/bin:/home/ubuntu/.rvm/gems/ruby-2.3.1@global/bin:/home/ubuntu/.rvm/rubies/ruby-2.3.1/bin:/home/ubuntu/.rvm/bin:/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
66 verbose lifecycle undefined~postinstall: CWD: /home/ubuntu/sharetribe
67 silly lifecycle undefined~postinstall: Args: [ ā-cā, ācd client && npm installā ]
68 silly lifecycle undefined~postinstall: Returned: code: 137 signal: null
69 info lifecycle undefined~postinstall: Failed to exec postinstall script
70 verbose stack Error: undefined postinstall: cd client && npm install
70 verbose stack Exit status 137
70 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
70 verbose stack at emitTwo (events.js:106:13)
70 verbose stack at EventEmitter.emit (events.js:191:7)
70 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
70 verbose stack at emitTwo (events.js:106:13)
70 verbose stack at ChildProcess.emit (events.js:191:7)
70 verbose stack at maybeClose (internal/child_process.js:886:16)
70 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
71 verbose cwd /home/ubuntu/sharetribe
72 error Linux 4.4.0-64-generic
73 error argv ā/usr/bin/nodejsā ā/usr/bin/npmā āinstallā
74 error node v6.10.2
75 error npm v3.10.10
76 error code ELIFECYCLE
77 error undefined postinstall: cd client && npm install
77 error Exit status 137
78 error Failed at the undefined postinstall script ācd client && npm installā.
78 error Make sure you have the latest version of node.js and npm installed.
78 error If you do, this is most likely a problem with the package,
78 error not with npm itself.
78 error Tell the author that this fails on your system:
78 error cd client && npm install
78 error You can get information on how to open an issue for this project with:
78 error npm bugs
78 error Or if that isnāt available, you can get their info via:
78 error npm owner ls
78 error There is likely additional logging output above.
79 verbose exit [ 1, true ]
Hi gordy123,
Iām no expert more like āamateur eclaireā as we say in french and go with ātrial and errorā without really knowing why it works or not
At some point I had the same kind of error, I didnāt write down exactly why and how, but my ācurrent workingā install procedure on fresh EC2 AWS UBUNTU 16.04 instance for node 6.9 is:
@gordy123
I more or less have the same procedure (the order of installs is some times different) but I am currently working on a modified version of sharetribe and seem to get some specific errors.
when I get this error in npm install āundefined: cd client && npm installā I do as rap1ds suggested
cd client
npm install
at this point either it worksā¦ great
or ā¦I can have a new ERR
"ERROR in ENOENT: no such file or directory, scandir ā/home/ec2-user/sharetribe/client/node_modules/node-sass/vendorā
@ ./~/react-dates/css/styles.scss "
for this one
make sure you are in client dir and then
cd node_modules
npm rebuild node-sass
cd ā¦/ā¦
last one to get back to sharetribe dir
before doing bundle install I have configured my config.yml and database.yml files
Hey so to fix this error you enter the following commands.
npm install -g npm@latest
once you have installed
execute the following command
npm install -g npm@4.2.0
You will then have no errors when you execute RAILS_ENV=production NODE_ENV=production bundle exec rake assets:precompile