Updating to 1.6.x on Ubuntu

How do I upgrade to latest meteor version on Ubuntu?

Show I run sudo meteor update? Im getting a warning that my files will become read only, at least that’s how I understand it

What error are you seeing? That’s certainly nothing I’ve ever come across. You can run Meteor projects on years-old versions.

If you switch to your home directory and do meteor update that will update the build tool.

You can also selectively update any of your projects by going into the project directory and doing meteor update.

Note that you don’t need - and shouldn’t use - sudo.

The project was initally built on windows platform and I am using linux
if I try to run the project it runs fine but I cant update it
I dont try to update it with sudo since everywhere I read Im told I should avoid it but cant seem to find a workaround
I installed node-gyp and node-pre-gyp but ti still doesnt work I dont know what other info to give

I am getting this as error:

=> Errors while initializing project:

While loading package meteorhacks:kadira-binary-deps@1.5.0:
error: Command failed: /home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm rebuild --update-binary
node-pre-gyp ERR! Tried to download: https://node-inspector.s3.amazonaws.com/profiler/v5.6.5/node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-profiler@5.6.5 and node@8.9.4 (node-v57 ABI) (falling back to source compile with node-gyp)
…/src/heap_profiler.cc: In member function ‘virtual v8::ActivityControl::ControlOption nodex::ActivityControlAdapter::ReportProgressValue(int, int)’:
…/src/heap_profiler.cc:35:18: warning: ‘v8::TryCatch::TryCatch()’ is deprecated: Use isolate version [-Wdeprecated-declarations]
TryCatch try_catch;
^
In file included from /home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/include/node/v8.h:26:0,
from /home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/include/node/v8-profiler.h:10,
from …/src/heap_profiler.h:4,
from …/src/heap_profiler.cc:1:
/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/include/node/v8.h:8260:40: note: declared here
V8_DEPRECATED(“Use isolate version”, TryCatch());
^
/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^
…/src/heap_snapshot.cc: In static member function ‘static Nan::NAN_GETTER_RETURN_TYPE nodex::Snapshot::GetRoot(v8::Localv8::String, Nan::NAN_GETTER_ARGS_TYPE)’:
…/src/heap_snapshot.cc:46:46: error: ‘class v8::Object’ has no member named ‘GetHiddenValue’
info.GetReturnValue().Set(info.This()->GetHiddenValue(__root));
^
…/src/heap_snapshot.cc:50:20: error: ‘class v8::Object’ has no member named ‘SetHiddenValue’
info.This()->SetHiddenValue(__root, _root);
^
make: *** [Release/obj.target/profiler/src/heap_snapshot.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.13.0-32-generic
gyp ERR! command “/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node”
"/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/node-gyp/bin/node-gyp.js" “build” “–fallback-to-build”
"–module=/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler/build/profiler/v5.6.5/node-v57-linux-x64/profiler.node"
"–module_name=profiler"
"–module_path=/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler/build/profiler/v5.6.5/node-v57-linux-x64"
gyp ERR! cwd /home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node
/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build
–module=/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler/build/profiler/v5.6.5/node-v57-linux-x64/profiler.node
–module_name=profiler
–module_path=/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler/build/profiler/v5.6.5/node-v57-linux-x64’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.13.0-32-generic
node-pre-gyp ERR! command “/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node”
"/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.bin/node-pre-gyp" “install” "–fallback-to-build"
node-pre-gyp ERR! cwd /home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler
node-pre-gyp ERR! node -v v8.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-profiler@5.6.5 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-profiler@5.6.5 install 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! /home/igor/.npm/_logs/2018-02-21T16_21_37_292Z-debug.log
node-pre-gyp ERR! Tried to download: https://node-inspector.s3.amazonaws.com/profiler/v5.6.5/node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-profiler@5.6.5 and node@8.9.4 (node-v57 ABI) (falling back to source compile with node-gyp)
…/src/heap_profiler.cc: In member function ‘virtual v8::ActivityControl::ControlOption nodex::ActivityControlAdapter::ReportProgressValue(int, int)’:
…/src/heap_profiler.cc:35:18: warning: ‘v8::TryCatch::TryCatch()’ is deprecated: Use isolate version [-Wdeprecated-declarations]
TryCatch try_catch;
^
In file included from /home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/include/node/v8.h:26:0,
from /home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/include/node/v8-profiler.h:10,
from …/src/heap_profiler.h:4,
from …/src/heap_profiler.cc:1:
/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/include/node/v8.h:8260:40: note: declared here
V8_DEPRECATED(“Use isolate version”, TryCatch());
^
/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^
…/src/heap_snapshot.cc: In static member function ‘static Nan::NAN_GETTER_RETURN_TYPE nodex::Snapshot::GetRoot(v8::Localv8::String, Nan::NAN_GETTER_ARGS_TYPE)’:
…/src/heap_snapshot.cc:46:46: error: ‘class v8::Object’ has no member named ‘GetHiddenValue’
info.GetReturnValue().Set(info.This()->GetHiddenValue(__root));
^
…/src/heap_snapshot.cc:50:20: error: ‘class v8::Object’ has no member named ‘SetHiddenValue’
info.This()->SetHiddenValue(__root, _root);
^
make: *** [Release/obj.target/profiler/src/heap_snapshot.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.13.0-32-generic
gyp ERR! command “/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node”
"/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/node-gyp/bin/node-gyp.js" “build” “–fallback-to-build”
"–module=/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler/build/profiler/v5.6.5/node-v57-linux-x64/profiler.node"
"–module_name=profiler"
"–module_path=/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler/build/profiler/v5.6.5/node-v57-linux-x64"
gyp ERR! cwd /home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node
/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build
–module=/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler/build/profiler/v5.6.5/node-v57-linux-x64/profiler.node
–module_name=profiler
–module_path=/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler/build/profiler/v5.6.5/node-v57-linux-x64’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.13.0-32-generic
node-pre-gyp ERR! command “/home/igor/.meteor/packages/meteor-tool/.1.6.1.1wnoyxr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node”
"/home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.bin/node-pre-gyp" “install” "–fallback-to-build"
node-pre-gyp ERR! cwd /home/igor/.meteor/packages/meteorhacks_kadira-binary-deps/.1.5.0.1626ma4.gmm++os.linux.x86_64+web.browser+web.cordova/npm/node_modules/.temp-1izl417.drhw/node_modules/v8-profiler
node-pre-gyp ERR! node -v v8.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.29
node-pre-gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-profiler@5.6.5 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-profiler@5.6.5 install 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! /home/igor/.npm/_logs/2018-02-21T16_21_37_292Z-debug.log