You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I git pull latest changes form develop branch and then start Rocket Chat server using command meteor I get npm error: npm ERR! Cannot read property '0'
I think its related with Live Chat building. Logs then error occurs:
63 silly unbuild inherits
64 info lifecycle undefined~preuninstall: undefined
65 info lifecycle undefined~uninstall: undefined
66 silly unbuild block-stream
67 info lifecycle undefined~preuninstall: undefined
68 info lifecycle undefined~uninstall: undefined
69 verbose unlock done using /home/adminas/.npm/_locks/staging-7f707e5c6158094e.lock for /home/adminas/dev/Rocket.Chat/packages/rocketchat-livechat/.app/node_modules/.staging
70 verbose stack TypeError: Cannot read property '0' of undefined
70 verbose stack at rmStuff (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/unbuild.js:61:24)
70 verbose stack at tryCatcher (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
70 verbose stack at ret (eval at makeNodePromisifiedEval (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:13:39)
70 verbose stack at lifecycle.then.then (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/install/action/unbuild.js:12:12)
70 verbose stack at tryCatcher (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
70 verbose stack at Promise._settlePromiseFromHandler (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
70 verbose stack at Promise._settlePromise (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
70 verbose stack at Promise._settlePromise0 (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
70 verbose stack at Promise._settlePromises (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
70 verbose stack at Promise._fulfill (/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:638:18)
70 verbose stack at /home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/bluebird/js/release/nodeback.js:42:21
70 verbose stack at <anonymous>
71 verbose cwd /home/adminas/dev/Rocket.Chat/packages/rocketchat-livechat/.app
72 verbose Linux 4.13.0-26-generic
73 verbose argv "/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node" "/home/adminas/.meteor/packages/meteor-tool/.1.6.0_1.obe9u1++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm" "install" "--production"
74 verbose node v8.9.3
75 verbose npm v5.5.1
76 error Cannot read property '0' of undefined
77 verbose exit [ 1, true ]
I tried install latest Ubuntu 16.0.3 and start Rocket Chat server using commands:
git clone https://github.com/RocketChat/Rocket.Chat.git
cd Rocket.Chat
meteor npm start
But I get same error. Maybe same linux dependencies missing. Somewhere a month ago I don't got this error and all worked fine.
Server Setup Information:
Version of Rocket.Chat Server: 0.61.0-develop (fbbe16c)
Operating System: Ubuntu 16.04.3 64-bit
Deployment Method(snap/docker/tar/etc): git pull
Number of Running Instances: 1
DB Replicaset Oplog: Enabled
Node Version: 8.9.3 - x64
The text was updated successfully, but these errors were encountered:
@rodrigok Thanks, it works! I think you can remove packages/rocketchat-livechat/.app/package-lock.json from git repository. When I check git status, it prints:
Description:
I git pull latest changes form
develop
branch and then start Rocket Chat server using commandmeteor
I get npm error:npm ERR! Cannot read property '0'
I think its related with Live Chat building. Logs then error occurs:
I tried install latest Ubuntu 16.0.3 and start Rocket Chat server using commands:
But I get same error. Maybe same linux dependencies missing. Somewhere a month ago I don't got this error and all worked fine.
Server Setup Information:
The text was updated successfully, but these errors were encountered: