I am attaching below what error i am getting
[ERROR] : certificate has expired
2017-10-14T05:46:30.298Z | TRACE | titanium exited with exit code 100
2017-10-14T05:46:30.299Z | ERROR | Error: ti run exited with error code 100
at ChildProcess. (/Users/balakrishna/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/plugins/run.js:92:66)
at ChildProcess.emit (events.js:110:17)
at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
2017-10-14T05:46:30.300Z | TRACE | Sending exit signal to titanium process: 2240
Update your CLI/dev environment: appc setup && appc use latest
Related
It will not working when I run the code from terminal but its working when I run the code from XCode directly.
terminal error logs are like below,
info : Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/test/StaticTracepointTestModule.cpp'
info folly-2018.10.22.00/folly/tracing/test/StaticTracepointTestModule.h: Failed to create dir 'folly-2018.10.22.00'Can't create 'folly-2018.10.22.00/folly/tracing/test/StaticTracepointTestModule.h'
info tar:
info Error exit delayed from previous errors.
info Unpacking '/Users/FromMac/.rncache/folly-2018.10.22.00.tar.gz' failed. Debug info:
info -rw-r--r-- 1 FromMac staff 2687604 22 Feb 12:49 /Users/FromMac/.rncache/folly-2018.10.22.00.tar.gz
info f70a75bfeb394363d2049a846bba118ffb3b368a /Users/FromMac/.rncache/folly-2018.10.22.00.tar.gz
info Command PhaseScriptExecution failed with a nonzero exit code
Finally I got Error message like below image
when I was trying to start my npm project I got the following error:
/home/projects/reactive-weather/reactive-weather/app/node_modules/expo/src/Location.js:
Cannot find module '#babel/preset-env' from '/home/projects/reactive-weather/reactive-weather/app'
Surely I need to install this module but after I did, I'm getting this error:
Error: /home/projects/reactive-weather/reactive-weather/app/node_modules/expo/src/Location.js: Unexpected token, expected ";" (9:5)
7 | const LocationEventEmitter = new NativeEventEmitter(NativeModules.ExponentLocation);
8 |
> 9 | type ProviderStatus = {
| ^
10 | locationServicesEnabled: boolean,
11 | gpsAvailable: ?boolean,
12 | networkAvailable: ?boolean,
10:43:44 AM: Failed building JavaScript bundle
Everything was perfectly fine, the last thing I've done before this happened was using git commands like: git stash also I had to perform npm audit fix but I don't think any libs were vulnerable.
!/bin/bash -eo pipefail
yarn build
yarn run v1.6.0
$ react-scripts build
Creating an optimized production build...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
events.js:183
throw er; // Unhandled 'error' event
^
Error: This socket has been ended by the other party
at Socket.writeAfterFIN [as write] (net.js:364:12)
at PoolWorker.writeJson (/home/circleci/repo/node_modules/thread-loader/dist/WorkerPool.js:89:22)
at PoolWorker.run (/home/circleci/repo/node_modules/thread-loader/dist/WorkerPool.js:69:12)
at WorkerPool.distributeJob (/home/circleci/repo/node_modules/thread-loader/dist/WorkerPool.js:326:20)
at /home/circleci/repo/node_modules/thread-loader/node_modules/async/queue.js:10:5
at Object.process (/home/circleci/repo/node_modules/thread-loader/node_modules/async/internal/queue.js:175:17)
at /home/circleci/repo/node_modules/thread-loader/node_modules/async/internal/queue.js:115:15
at /home/circleci/repo/node_modules/thread-loader/node_modules/async/internal/onlyOnce.js:12:16
at callback (/home/circleci/repo/node_modules/thread-loader/dist/WorkerPool.js:163:21)
at /home/circleci/repo/node_modules/thread-loader/dist/WorkerPool.js:190:15
at /home/circleci/repo/node_modules/thread-loader/node_modules/async/internal/map.js:32:9
at /home/circleci/repo/node_modules/thread-loader/node_modules/async/internal/once.js:12:16
at replenish (/home/circleci/repo/node_modules/thread-loader/node_modules/async/internal/eachOfLimit.js:61:25)
at iterateeCallback (/home/circleci/repo/node_modules/thread-loader/node_modules/async/internal/eachOfLimit.js:50:17)
at /home/circleci/repo/node_modules/thread-loader/node_modules/async/internal/onlyOnce.js:12:16
at /home/circleci/repo/node_modules/thread-loader/node_modules/async/internal/map.js:29:13
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Exited with code 1
Currently I'm in the process of creating a private npm registry. I've got couchdb set up and is replicating, as I have verified using the couchdb curl request /_all_docs, which returns what appears to be the entire list of libs stored on NPM. The problem I'm having is that I cannot seem to run an npm install. When I comment out the assignment of the registry variable in .npmrc, I can install without issue.
Here are the relevant lines from .npmrc:
registry = http://localhost:5984/registry/_design/app/_rewrite
npmjs.org:couch = http://<user>:<password>#127.0.0.1:5984/registry
I've added the recommended lines to local.ini, I'm using npm-registry-couchapp and have followed all directions there as well.
When I attempt npm install in the terminal, it hangs up on the following step: fetchMetadata: sill install loadAllDepsIntoIdealTree
The following command also fails, npm \
--registry=http://localhost:5984/registry/_design/app/_rewrite \
install node-sass
Here's the output from the npm debug log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ]
2 info using npm#5.5.1
3 info using node#v6.11.4
4 verbose npm-session 28055a10e204f6fe
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall npm-registry-couchapp#2.7.0
7 info lifecycle npm-registry-couchapp#2.7.0~preinstall: npm-registry-couchapp#2.7.0
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 silly install loadShrinkwrap
13 silly install loadAllDepsIntoIdealTree
14 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/request 70119ms attempt #3
15 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/rimraf 70114ms attempt #3
16 silly fetchPackageMetaData error for request#^2.42.0 500 Internal Server Error: request#^2.42.0
17 silly fetchPackageMetaData error for rimraf#~2.2.6 500 Internal Server Error: rimraf#~2.2.6
18 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/parse-json-response 70120ms attempt #3
19 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/which 70115ms attempt #3
20 silly fetchPackageMetaData error for parse-json-response#^1.0.1 500 Internal Server Error: parse-json-response#^1.0.1
21 silly fetchPackageMetaData error for which#^1.0.5 500 Internal Server Error: which#^1.0.5
22 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/couchapp 70119ms attempt #3
23 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/json 70119ms attempt #3
24 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/semver 70117ms attempt #3
25 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/tap 70124ms attempt #3
26 silly fetchPackageMetaData error for couchapp#~0.11.0 500 Internal Server Error: couchapp#~0.11.0
27 silly fetchPackageMetaData error for json#^9.0.2 500 Internal Server Error: json#^9.0.2
28 silly fetchPackageMetaData error for semver#4 500 Internal Server Error: semver#4
29 silly fetchPackageMetaData error for tap#* 500 Internal Server Error: tap#*
30 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/semver 70032ms attempt #3
31 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/json 70034ms attempt #3
32 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/couchapp 70035ms attempt #3
33 silly fetchPackageMetaData error for semver#4 500 Internal Server Error: semver#4
34 silly fetchPackageMetaData error for json#^9.0.2 500 Internal Server Error: json#^9.0.2
35 silly fetchPackageMetaData error for couchapp#~0.11.0 500 Internal Server Error: couchapp#~0.11.0
36 verbose stack Error: 500 Internal Server Error: semver#4
36 verbose stack at fetch.then.res (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:42:19)
36 verbose stack at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
36 verbose stack at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
36 verbose stack at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
36 verbose stack at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
36 verbose stack at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
36 verbose stack at Async._drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
36 verbose stack at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
36 verbose stack at Immediate.Async.drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
36 verbose stack at runCallback (timers.js:672:20)
36 verbose stack at tryOnImmediate (timers.js:645:5)
36 verbose stack at processImmediate [as _immediateCallback] (timers.js:617:5)
37 verbose cwd /Users/frontend/projects/npm-registry-couchapp
38 verbose Darwin 16.7.0
39 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
40 verbose node v6.11.4
41 verbose npm v5.5.1
42 error code E500
43 error 500 Internal Server Error: semver#4
44 verbose exit [ 1, true ]
If you can offer any tips about what to try next, or what to search, that would be most excellent. Also, I'm happy to add more code.
It was an easy fix - I just changed the registry link to
http://localhost:5984/registry/
I have an app that worked fine last year on the earlier versions of sdk but now Titanium SDK 5.2.2.GA won't find iOS devices. I tried cleaning everything about appcelerator and reinstall but no luck. I also tried installing node-ios-device as a global package and in the titanium sdk 5.2.2 folder. What else can I do?
I get the following error:
2016-05-11T09:34:54.590Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/adi/.appcelerator/install/5.2.2/package/appc.js
(node:2212) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
2016-05-11T09:34:54.651Z | DEBUG | [PLUGIN-LOAD] 61ms /Users/adi/.appcelerator/install/5.2.2/package/node_modules/appc-cli-titanium/appc.js
2016-05-11T09:34:54.651Z | DEBUG | run plugin: /Users/adi/.appcelerator/install/5.2.2/package/node_modules/appc-cli-titanium
2016-05-11T09:34:54.652Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/adi/.appcelerator/install/5.2.2/package/node_modules/arrow/appc.js
2016-05-11T09:34:54.654Z | DEBUG | run plugin: /Users/adi/.appcelerator/install/5.2.2/package/node_modules/arrow
2016-05-11T09:34:54.656Z | TRACE | plugin "arrow" failed its "when" function check, skipping...
2016-05-11T09:34:54.657Z | TRACE | loading plugin "titanium" for command "run" CLI options via function
2016-05-11T09:34:54.658Z | TRACE | loading plugin "titanium" for command "run" CLI options via array
2016-05-11T09:34:54.660Z | TRACE | executing command "run" with the following plugins:
["titanium"]
2016-05-11T09:34:54.661Z | TRACE | Attempting to load session info from config file
2016-05-11T09:34:54.662Z | TRACE | check if session is invalidated
2016-05-11T09:34:55.350Z | TRACE | session expiry 1463560847951 false
2016-05-11T09:34:55.351Z | TRACE | session already loaded in opts.session
2016-05-11T09:34:55.352Z | DEBUG | Titanium Downloads Last Checked: 1462957150130
2016-05-11T09:34:55.480Z | TRACE | No project alloy hook; skipping update to 1.0.0
2016-05-11T09:34:56.100Z | ERROR | An uncaught exception was thrown!
Cannot read property 'devices' of undefined
2016-05-11T09:34:56.101Z | ERROR | Cannot read property 'devices' of undefined
2016-05-11T09:34:56.101Z | TRACE | TypeError: Cannot read property 'devices' of undefined
at iOSBuilder.<anonymous> (/Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/iphone/cli/commands/_build.js:298:11)
at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/index.js:115:12
at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:721:13
at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:52:16
at done (/Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:241:17)
at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:44:16
at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:718:17
at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:167:37
at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/index.js:85:6
at /Users/adi/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/lib/device.js:51:12
For anybody who encounters this, the problem is the NodeJS version, I had v6.2.0 and downgraded to v4.4.4. All works now.
Thanks Adi, I had the exact same issue v6.2.0 of Node and downgraded to v4.4.x and all works for me as well.