[AC-1413] Appc setup errors out during appc-memwatch installation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Done |
Resolution Date | 2015-09-30T07:16:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Andrey Tkachenko |
Assignee | Motiur Rahman |
Created | 2015-09-10T08:40:02.000+0000 |
Updated | 2016-03-08T07:37:50.000+0000 |
Description
I got error after click on Appcelerator studio update notification.
Attachments
File | Date | Size |
---|---|---|
npm-debug.log | 2015-09-10T08:39:52.000+0000 | 61250 |
npm-debug-fvl.log | 2015-09-18T01:44:39.000+0000 | 69228 |
Hello Andrey Tkachenko, Please try this following link step by step then let us know if you get this error again https://web.appcelerator.com/product/cli Thanks.
I did it already. Error on third step. I attached the log file. Command output:
I am still unable to run appc setup. I get the same installation error with npm version 2.14.2 Finding latest version ...4.1.3 ✓ Validating security checksum ✓ Installing ... ✓ Compiling platform native modules ... └ package/appc-cli-titanium ... ✓ └ extract-opts/typechecker ... ✓ └ bunyan/dtrace-provider ... ✓ └ extract-opts/typechecker ... ✓ └ socket.io-client/ws ... ✓ └ appc-ldapjs/dtrace-provider ... ✓ └ arrow/appc-memwatch ... npm WARN package.json arrow@1.2.48 license should be a valid SPDX license expression gyp: /Users/andrasch/.node-gyp/4.0.0/common.gypi not found (cwd: /Users/andrasch/.appcelerator/install/4.1.3/package/node_modules/arrow/node_modules/appc-memwatch) while reading includes of binding.gyp while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:
gyp
failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:357:16) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Darwin 14.5.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/andrasch/.appcelerator/install/4.1.3/package/node_modules/arrow/node_modules/appc-memwatch gyp ERR! node -v v4.0.0 gyp ERR! node-gyp -v v2.0.2 gyp ERR! not ok npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "appc-memwatch@0.2.11" "--production" npm ERR! node v4.0.0 npm ERR! npm v2.14.2 npm ERR! code ELIFECYCLE npm ERR! appc-memwatch@0.2.11 postinstall:node ./build.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the appc-memwatch@0.2.11 postinstall script 'node ./build.js'. npm ERR! This is most likely a problem with the appc-memwatch package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node ./build.js npm ERR! You can get their info via: npm ERR! npm owner ls appc-memwatch npm ERR! There is likely additional logging output above.Hello Andrey Tkachenko, Node version v4.0.0 we get some problem so try to use v0.10.37. Next, try a clean install of your Appc CLI: - Uninstall Appc CLI from NPM global path : sudo npm uninstall -g appcelerator - Remove Appc CLI installed locally : sudo rm -rf .appcelerator - Cache clean from NPM : sudo npm cache clean - Then, reinstall Appc CLI from NPM : sudo npm install -g appcelerator - Run setup : appc setup Then let us know if you get the error again. Thanks.
Without steps you described I try to run appc setup:
It is ok?
Hi, today we tried to upgrade to CLI 5.0 and we are getting the same error again.
---- Thank you for your feedback / help / support, Jann
Everyone, could you please try the following:
Open a command prompt
sudo npm install -g appc-memwatch
Send us the complete terminal output you get from doing that
*sudo npm install -g appc-memwatch* Password: \ > appc-memwatch@0.3.2 postinstall /usr/local/lib/node_modules/appc-memwatch > node ./build.js CXX(target) Release/obj.target/memwatch/src/module.o CXX(target) Release/obj.target/memwatch/src/memwatch.o CXX(target) Release/obj.target/memwatch/src/heapdiff.o CXX(target) Release/obj.target/memwatch/src/worker.o CXX(target) Release/obj.target/memwatch/src/util.o SOLINK_MODULE(target) Release/memwatch.node appc-memwatch@0.3.2 /usr/local/lib/node_modules/appc-memwatch ├── bindings@1.2.1 └── nan@2.0.9 ---- About 2 hours ago we were able to run "appc logout" (usually this command first tried to install the CLI 5.0 and run into this error) After that we were able to run "app setup" successfully with a new login verification. Thank you for your fast support! Jann
Related Q&A's: - https://community.appcelerator.com/topic/509/appceleratorstudio-impossible-to-update-appcelerator-cli-4-0-0-21-may-2015/23 - https://community.appcelerator.com/topic/3351/appcelerator-sutdio-no-longer-working-after-last-update - https://community.appcelerator.com/topic/3221/5-0-0-beta-now-available-with-ios-9-support/8 - https://community.appcelerator.com/topic/3262/unable-to-update-appcelerator-cli-core-v-4-1-3/10
~ $ sudo npm install -g appc-memwatch Password: \ > appc-memwatch@0.3.3 install /usr/local/lib/node_modules/appc-memwatch > node-gyp rebuild CXX(target) Release/obj.target/memwatch/src/module.o CXX(target) Release/obj.target/memwatch/src/memwatch.o CXX(target) Release/obj.target/memwatch/src/heapdiff.o CXX(target) Release/obj.target/memwatch/src/worker.o CXX(target) Release/obj.target/memwatch/src/util.o SOLINK_MODULE(target) Release/memwatch.node appc-memwatch@0.3.3 /usr/local/lib/node_modules/appc-memwatch ├── bindings@1.2.1 └── nan@2.0.9 ~ $ ~ $
sudo npm install -g appc-memwatch Password: - > appc-memwatch@0.3.3 install /usr/local/lib/node_modules/appc-memwatch > node-gyp rebuild CXX(target) Release/obj.target/memwatch/src/module.o CXX(target) Release/obj.target/memwatch/src/memwatch.o CXX(target) Release/obj.target/memwatch/src/heapdiff.o CXX(target) Release/obj.target/memwatch/src/worker.o CXX(target) Release/obj.target/memwatch/src/util.o SOLINK_MODULE(target) Release/memwatch.node SOLINK_MODULE(target) Release/memwatch.node: Finished appc-memwatch@0.3.3 /usr/local/lib/node_modules/appc-memwatch ├── bindings@1.2.1 └── nan@2.0.9
Result of running
appc setup
, showing failure ofappc-memwatch
moduleI am able to install
appc-memwatch
both as sudo and myself without a hitch (as some folks above show also), however it still bombs out on this module when doingappc setup
to get GA 5.0.0... See [^npm-debug-fvl.log] attached.We will release an appc-cli core version 5.0.1 today (9/18) that removes the dependency.
FYI: Downgrading my node.js installation to 0.12.7 and repeating the CLI installation sorted the problem for me...
This should be fixed for all users with CLI version 5.0.1.