Cordova 3.1.0 : Command Line interface not working - ios

Cordova 3.1.0 : Command Line interface not working . I installed node.js and used th following command
$ sudo npm install -g cordova
after installation am getting following output :
/usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
cordova#3.1.0-0.2.0 /usr/local/lib/node_modules/cordova
├── ncallbacks#1.0.0
├── semver#1.1.0
├── colors#0.6.2
├── open#0.0.3
├── mime#1.2.11
├── q#0.9.7
├── shelljs#0.1.2
├── follow-redirects#0.0.3 (underscore#1.5.2)
├── optimist#0.6.0 (wordwrap#0.0.2, minimist#0.0.5)
├── xcode#0.5.1 (node-uuid#1.3.3, pegjs#0.6.2)
├── glob#3.2.6 (inherits#2.0.1, minimatch#0.2.12)
├── tar#0.1.18 (inherits#2.0.1, block-stream#0.0.7, fstream#0.1.24)
├── elementtree#0.1.5 (sax#0.3.5)
├── prompt#0.2.7 (revalidator#0.1.5, pkginfo#0.3.0, read#1.0.5, utile#0.1.7, winston#0.6.2)
├── express#3.0.0 (methods#0.0.1, fresh#0.1.0, range-parser#0.0.4, debug#0.7.3, cookie#0.0.4, crc#0.2.0, commander#0.6.1, mkdirp#0.3.3, send#0.1.0, connect#2.6.0)
├── request#2.22.0 (json-stringify-safe#4.0.0, aws-sign#0.3.0, forever-agent#0.5.0, qs#0.6.5, tunnel-agent#0.3.0, oauth-sign#0.3.0, cookie-jar#0.3.0, node-uuid#1.4.1, http-signature#0.10.0, hawk#0.13.1, form-data#0.0.8)
├── npm#1.3.13
├── plist#0.4.3 (xmlbuilder#0.4.2, xmldom#0.1.16)
├── ripple-emulator#0.9.18 (connect-xcors#0.5.2, colors#0.6.0-1, accounting#0.3.2, request#2.12.0, moment#1.7.2, express#3.1.0)
└── plugman#0.14.0 (ncallbacks#1.1.0, osenv#0.0.3, bplist-parser#0.0.4, semver#2.0.11, underscore#1.4.4, nopt#1.0.10, dep-graph#1.1.0, xcode#0.6.1, rc#0.3.0, tar.gz#0.1.1, npm#1.3.4)
Not able to create add platform or create a project .
while using this command
$ cordova create hello com.example.hello HelloWorld
am getting the following error.
-bash: cordova: command not found
am using MAC OS

Did your PATH system variable include /usr/local/bin/?

You need to add the NPM directory into your PATH, so that you can run "cordova" from anywhere and it will get picked up.
For example, I had to add
;C:\Users\MBillau\AppData\Roaming\npm
which is where my npm folder is.

Related

About Kotlin Multiplatform AndroidNative who can help me. I searched kotlinlang, stackoverflow, google, but there was no specific way to use it

I want to implement the library generated by Android calling AndroidNativeArm64 in the Kotlin Mulitplatform project. I've gone through almost all the documentation at kotlinlang.org and still don't know how to do it. Also searching on google and stackoverflow and github, no good reference. Is there an example of this? I tried a few things on my own, but it went wrong.
I did the following in the IntelliJ IDE:
enter image description here
enter image description here
enter image description here
Configure gradle according to the documentation to produce klib and so files:
enter image description here
https://kotlinlang.org/docs/multiplatform-library.html#publish-your-library-to-the-local-maven-repository
The library has been published to the local Maven repository:
/Users/dxy/.m2/repository/me
└── dxy
├── mytestlib
│ ├── 1.0.0
│ │ ├── mytestlib-1.0.0-kotlin-tooling-metadata.json
│ │ ├── mytestlib-1.0.0-sources.jar
│ │ ├── mytestlib-1.0.0.jar
│ │ ├── mytestlib-1.0.0.module
│ │ └── mytestlib-1.0.0.pom
│ └── maven-metadata-local.xml
└── mytestlib-androidnativearm64
├── 1.0.0
│ ├── mytestlib-androidnativearm64-1.0.0-sources.jar
│ ├── mytestlib-androidnativearm64-1.0.0.klib
│ ├── mytestlib-androidnativearm64-1.0.0.module
│ └── mytestlib-androidnativearm64-1.0.0.pom
└── maven-metadata-local.xml
5 directories, 11 files
Create the Kotlin Mulitplatform App in AndroidStudio.
https://kotlinlang.org/docs/multiplatform-library.html#add-a-dependency-on-the-published-library
Error adding dependencies to androidMain:
enter image description here
Unable to build Kotlin project configuration
org.gradle.internal.resolve.ArtifactNotFoundException: Could not find mytestlib-1.0.0-samplessources.jar (me.dxy:mytestlib:1.0.0).
Searched in the following locations:
file:/Users/dxy/.m2/repository/me/dxy/mytestlib/1.0.0/mytestlib-1.0.0-samplessources.jar
at org.gradle.internal.resolve.result.DefaultBuildableArtifactResolveResult.notFound(DefaultBuildableArtifactResolveResult.java:28)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver$RemoteRepositoryAccess.resolveArtifact(ExternalResourceResolver.java:510)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$ResolveAndCacheRepositoryAccess.resolveArtifact(CachingModuleComponentRepository.java:439)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.LocalModuleComponentRepository$LocalAccess.resolveArtifact(LocalModuleComponentRepository.java:91)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.lambda$resolveArtifact$12(ErrorHandlingModuleComponentRepository.java:171)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.tryResolveAndMaybeBlacklist(ErrorHandlingModuleComponentRepository.java:227)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.performOperationWithRetries(ErrorHandlingModuleComponentRepository.java:193)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.resolveArtifact(ErrorHandlingModuleComponentRepository.java:169)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainArtifactResolver.resolveArtifact(RepositoryChainArtifactResolver.java:78)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSupplier.calculateValue(DefaultArtifactSet.java:290)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSupplier.calculateValue(DefaultArtifactSet.java:261)
at org.gradle.internal.model.CalculatedValueContainer$CalculationState.lambda$attachValue$0(CalculatedValueContainer.java:218)
at org.gradle.internal.Try.ofFailable(Try.java:41)
at org.gradle.internal.model.CalculatedValueContainer$CalculationState.attachValue(CalculatedValueContainer.java:213)
at org.gradle.internal.model.CalculatedValueContainer.finalizeIfNotAlready(CalculatedValueContainer.java:186)
at org.gradle.internal.model.CalculatedValueContainer.finalizeIfNotAlready(CalculatedValueContainer.java:177)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.ArtifactBackedResolvedVariant$DownloadArtifactFile.run(ArtifactBackedResolvedVariant.java:192)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$QueueWorker.execute(DefaultBuildOperationExecutor.java:238)
at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.runOperation(DefaultBuildOperationQueue.java:266)
at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.doRunBatch(DefaultBuildOperationQueue.java:247)
at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.lambda$runBatch$0(DefaultBuildOperationQueue.java:237)
at org.gradle.internal.resources.AbstractResourceLockRegistry.whileDisallowingLockChanges(AbstractResourceLockRegistry.java:50)
at org.gradle.internal.work.DefaultWorkerLeaseService.whileDisallowingProjectLockChanges(DefaultWorkerLeaseService.java:221)
at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.lambda$runBatch$1(DefaultBuildOperationQueue.java:237)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:249)
at org.gradle.internal.work.DefaultWorkerLeaseService.runAsWorkerThread(DefaultWorkerLeaseService.java:109)
at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.runBatch(DefaultBuildOperationQueue.java:223)
at org.gradle.internal.operations.DefaultBuildOperationQueue$WorkerRunnable.run(DefaultBuildOperationQueue.java:191)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

name conflicts of .so file in android binary

I'm linking a cc_library to an android_binary and getting a naming issue. Can someone tells me how to solve it?
The cc_library:
cc_library(
name = "native_library",
srcs = glob(["libs/**/*.so"])
)
The contents of libs directory:
libs
├── armeabi
│   ├── libSound.so
│   ├── libSec.so
│   ├── libWatch.so
│   └── libTec.so
├── armeabi-v7a
│   ├── libSound.so
│   ├── libSec.so
│   └── libWatch.so
├── x86
│   ├── libSound.so
│   ├── libSec.so
│   ├── libWatch.so
│   └── libTec.so
|—— other jars
And The error messages are like this:
ERROR: /the/path/to/BUILD:10:1: in android_binary rule //:debug_apk: Each library in the transitive closure must have a unique basename to avoid name collisions when packaged into an apk, but two libraries have the basename 'libSound.so': libs/armeabi/libSound.so and libs/armeabi-v7a/libSound.so.
...
An alternate approach that takes advantage of android_binary's --fat_apk_cpu flag and does not require renaming your libraries:
android_binary will build each cc_library once for each architecture specified by --fat_apk_cpu. The default of --fat_apk_cpu is just armeabi-v7a. This is known as the "Android split transition". When it builds each cc_library, that cc_library gets passed a --cpu flag from the list in --fat_apk_cpu. We can define config_setting rules that read these flags, and use a select statement in the cc_library, so that your cc_library contains different .so files depending on which architecture that it is built for.
For example:
# BUILD
CPUS = ["armeabi", "armeabi-v7a", "x86"]
[config_setting(name = cpu, values = {"cpu": cpu}) for cpu in CPUS]
cc_library(
name = "native_library",
srcs = select(
{":%s" % cpu : glob(["libs/%s/*.so" % cpu]) for cpu in CPUS}
),
)
android_binary(
name = "app",
srcs = glob(["*.java"]),
manifest = "AndroidManifest.xml",
deps = [":native_library"],
)
And then on the command line you can specify which architectures you want present in the final APK.
$ bazel build --fat_apk_cpu=armeabi,armeabi-v7a,x86 //:app
$ zipinfo -1 bazel-bin/app.apk | grep \.so$
lib/x86/libWatch.so
lib/x86/libSound.so
lib/x86/libSec.so
lib/x86/libTec.so
lib/armeabi-v7a/libWatch.so
lib/armeabi-v7a/libSound.so
lib/armeabi-v7a/libSec.so
lib/armeabi-v7a/libTec.so
lib/armeabi/libWatch.so
lib/armeabi/libSound.so
lib/armeabi/libSec.so
lib/armeabi/libTec.so
$ bazel build --fat_apk_cpu=x86 //:app
$ zipinfo -1 bazel-bin/app.apk | grep \.so$
lib/x86/libWatch.so
lib/x86/libSound.so
lib/x86/libSec.so
lib/x86/libTec.so
Specifying only one architecture to build for can speed up your development builds. For example, if you use an x86 emulator while you develop, you don't need the armeabi and armeabi-v7a .so files.
I might be wrong but it's the limitation of apk layout, so I'm afraid you just cannot have that named libs in a fat apk. Is renaming libs into libSound-armeabi.so etc an option for you?

Pod lib lint did not pass validation xcodebuild: ld: warning: ignoring file missing required architecture i386 in file

Recently, I'm trying to use CocoaPods to upload an integrated sharedSDK to a private library.
I'm not sure if I'm doing something stupid. When I run "pod lib lint", everything seems to be fine but when I run "pod spec lint" I get:
ld: warning: ignoring file by TencentOpenAPI.framework
** BUILD FAILED **
The following build commands failed:
Ld /Users/melody/Library/Developer/Xcode/DerivedData/App-fcbstzvalzvjwfgtkwkycnyvprjk
/Build/Intermediates/App.build/Release-iphonesimulator/App.build/Objects-normal/i386/App normal i386
(1 failure)
-> SLShareSDK (0.1.0)
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | [iOS] xcodebuild: ld: warning: ignoring file /Users/melody/GItLab/SLShareSDK/SLShareSDK/Assets/TencentOpenAPI.framework/TencentOpenAPI,
missing required architecture i386 in file /Users/melody/GItLab/SLShareSDK/SLShareSDK/Assets/TencentOpenAPI.framework/TencentOpenAPI (3 slices)
- NOTE | [iOS] xcodebuild: clang: error: linker command failed with exit code 1 (use -v to see invocation)
[!] SLShareSDK did not pass validation, due to 1 error.
The contents of my SLShareSDK.Sperepo file are
Pod::Spec.new do |s|
s.name = 'SLShareSDK'
s.version = '0.1.0'
s.summary = 'Intergation'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
TODO: SLShare...
DESC
s.homepage = 'http://gitlaBalaBala...'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Melody' => 'BalaBala.com' }
s.source = { :git => 'http://gitlab.balabala...../SLShareSDK.git', :tag => s.version.to_s }
s.ios.deployment_target = '7.0'
s.source_files = 'SLShareSDK/Classes/**/*'
s.ios.vendored_libraries = 'SLShareSDK/Assets/*.a'
s.ios.vendored_frameworks = 'SLShareSDK/Assets/TencentOpenAPI.framework'
s.resource_bundles = {
'SLShareSDK' => ['SLShareSDK/Assets/*.bundle']
}
s.frameworks = 'UIKit', 'SystemConfiguration','Security','CoreTelephony','ImageIO'
s.libraries = 'sqlite3','z.1.2.8','c++.1'
s.dependency 'AFNetworking', '~> 2.6.3'
end
Here is the directory structure :
├── SLShareSDK
│   ├── Assets
│   │   ├── TencentOpenAPI.framework
│   │   │   ├── Headers
│   │   │   ├── Resources
│   │   │   └── TencentOpenAPI
│   │   ├── libWeChatSDK.a
│   │   └── libWeiboSDK.a
│   └── Classes
│   └── SLShareSDK
│   ├── AFHTTPRequestOperationManager+JXExtentsion.h
│   ├── AFHTTPRequestOperationManager+JXExtentsion.m
│   ├── SLShare.h
│   ├── SLShare.m
│   ├── SLShareAuthorizeObject.h
│   ├── SLShareAuthorizeObject.m
│   ├── SLShareConfiguration.plist
│   ├── SLShareConstant.h
│   ├── SLShareConstant.m
│   ├── SLShareContentObject.h
│   ├── SLShareContentObject.m
│   ├── SLShareContentObjectTranslater.h
│   ├── SLShareContentObjectTranslater.m
│   ├── SLShareQQ.h
│   ├── SLShareQQ.m
│   ├── SLShareSina.h
│   ├── SLShareSina.m
│   ├── SLShareWeChat.h
│   ├── SLShareWeChat.m
│   ├── WBHttpRequest+WeiboGame.h
│   ├── WBHttpRequest+WeiboShare.h
│   ├── WBHttpRequest+WeiboToken.h
│   ├── WBHttpRequest+WeiboUser.h
│   ├── WBHttpRequest.h
│   ├── WBSDKBasicButton.h
│   ├── WBSDKCommentButton.h
│   ├── WBSDKRelationshipButton.h
│   ├── WXApi.h
│   ├── WXApiObject.h
│   ├── WechatAuthSDK.h
│   ├── WeiboSDK+Statistics.h
│   ├── WeiboSDK.h
│   └── WeiboUser.h
├── SLShareSDK.podspec
Q1.:
In my Opinion,
The Program Use the TencentOpenAPI.framework and I aleady set s.ios.vendored_frameworks = 'SLShareSDK/Assets/TencentOpenAPI.framework' make sure the code path currect.
And I Use pod lib lint --use-libraries --verbose Check Out the Specrepo
But it show error make me crazed.But the way,The Same code I Use xcode run without problems.
So,This is my situation, thank you for your attention and help, if you have some suggestion please help me !!!
I also got this error when i try to link it agains third party framework, i found no solution but have to take out the header files alone out to let the lib build without linking, after that it work, would like to know a better solution though, see this for more info, also contain a fix by changing the validator.rb
I think I have found out the problem, as the error mentioned in the latest TencentOpenAPI.framework does not support i836CPU, so I try to use the old API to run, it's working!!!. But I do not know how to change pod lib lint does not run the i836 compiler...

unable to install cordova in mac os X 10.10.5

when i install Cordova using command line in mac os X10.10.5 then i get the error!!!
npm WARN deprecated npmconf#2.1.2: this package has been reintegrated
into npm and is now out of date with respect to npm
/Users/winaimmac/bin/cordova ->
/Users/winaimmac/lib/node_modules/cordova/bin/cordova cordova#6.0.0
/Users/winaimmac/lib/node_modules/cordova ├── underscore#1.7.0 ├──
q#1.0.1 ├── ansi#0.3.1 ├── nopt#3.0.1 (abbrev#1.0.7) ├──
update-notifier#0.5.0 (is-npm#1.0.0, semver-diff#2.1.0,
string-length#1.0.1, chalk#1.1.1, repeating#1.1.3,
latest-version#1.0.1, configstore#1.4.0) └── cordova-lib#6.0.0
(valid-identifier#0.0.1, opener#1.4.1, properties-parser#0.2.3,
semver#4.3.6, nopt#3.0.6, dep-graph#1.1.0, shelljs#0.3.0, xcode#0.8.0,
tar#1.0.2, aliasify#1.9.0, init-package-json#1.9.3,
cordova-app-hello-world#3.10.0, npm#2.14.17, request#2.47.0,
cordova-serve#1.0.0, npmconf#2.1.2, cordova-js#4.1.3)
how to fix it
help me
thanks

Unable to require "process"

Within my tests I'm attempting to use node.process. Everything works locally, but on travis-ci it is unable to find process. I haven't been able to find anything regarding this error or a solution for that matter.
Here's the error:
Using worker: worker-linux-docker-6b895d82.prod.travis-ci.org:travis-linux-5
system_info
Build system information
Build language: node_js
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Linux Version
3.13.0-29-generic
Cookbooks Version
a68419e https://github.com/travis-ci/travis-cookbooks/tree/a68419e
GCC version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
LLVM version
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Pre-installed Ruby versions
ruby-1.9.3-p551
Pre-installed Node.js versions
v0.10.36
Pre-installed Go versions
1.4.1
Redis version
redis-server 2.8.19
riak version
2.0.2
MongoDB version
MongoDB 2.4.12
CouchDB version
couchdb 1.6.1
Neo4j version
1.9.4
RabbitMQ Version
3.4.3
ElasticSearch version
1.4.0
Installed Sphinx versions
2.0.10
2.1.9
2.2.6
Default Sphinx version
2.2.6
Installed Firefox version
firefox 31.0esr
PhantomJS version
1.9.8
ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix"
git.checkout
0.10s$ git clone --depth=50 --branch=master git://github.com/hhsnopek/pourover.git hhsnopek/pourover
Cloning into 'hhsnopek/pourover'...
remote: Counting objects: 288, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 288 (delta 12), reused 0 (delta 0), pack-reused 254
Receiving objects: 100% (288/288), 478.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (147/147), done.
Checking connectivity... done.
$ cd hhsnopek/pourover
$ git checkout -qf c0c7d70cadcba962828c277806017ef4c344aa24
This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.
If you require sudo, add 'sudo: required' to your .travis.yml
See http://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details.
1.04s$ nvm install node
######################################################################## 100.0%
Now using node v0.12.4
$ node --version
v0.12.4
$ npm --version
2.10.1
$ nvm --version
0.23.3
install
12.24s$ npm install
npm WARN package.json pourover#1.1.0 No license field.
gulp-rename#1.2.2 node_modules/gulp-rename
underscore#1.8.3 node_modules/underscore
chai#2.3.0 node_modules/chai
├── assertion-error#1.0.0
└── deep-eql#0.1.3 (type-detect#0.1.1)
del#0.1.3 node_modules/del
├── is-path-cwd#1.0.0
├── each-async#1.1.1 (set-immediate-shim#1.0.1, onetime#1.0.0)
├── is-path-in-cwd#1.0.0 (is-path-inside#1.0.0)
├── globby#0.1.1 (array-differ#0.1.0, array-union#0.1.0, async#0.9.2, glob#4.5.3)
└── rimraf#2.3.4 (glob#4.5.3)
mocha#2.2.5 node_modules/mocha
├── escape-string-regexp#1.0.2
├── supports-color#1.2.1
├── growl#1.8.1
├── commander#2.3.0
├── diff#1.4.0
├── debug#2.0.0 (ms#0.6.2)
├── mkdirp#0.5.0 (minimist#0.0.8)
├── glob#3.2.3 (inherits#2.0.1, graceful-fs#2.0.3, minimatch#0.2.14)
└── jade#0.26.3 (commander#0.6.1, mkdirp#0.3.0)
gulp-wrap-umd#0.2.1 node_modules/gulp-wrap-umd
├── through2#0.5.1 (xtend#3.0.0, readable-stream#1.0.33)
├── gulp-util#2.2.20 (lodash._reinterpolate#2.4.1, minimist#0.2.0, chalk#0.5.1, vinyl#0.2.3, lodash.template#2.4.1, multipipe#0.1.2, dateformat#1.0.11)
└── lodash#2.4.2
gulp#3.8.11 node_modules/gulp
├── pretty-hrtime#0.2.2
├── interpret#0.3.10
├── deprecated#0.0.1
├── archy#1.0.0
├── minimist#1.1.1
├── tildify#1.0.0 (user-home#1.1.1)
├── v8flags#2.0.5 (user-home#1.1.1)
├── chalk#0.5.1 (ansi-styles#1.1.0, escape-string-regexp#1.0.3, supports-color#0.2.0, has-ansi#0.1.0, strip-ansi#0.3.0)
├── semver#4.3.4
├── orchestrator#0.3.7 (sequencify#0.0.7, stream-consume#0.1.0, end-of-stream#0.1.5)
├── liftoff#2.1.0 (extend#2.0.1, rechoir#0.6.1, flagged-respawn#0.3.1, resolve#1.1.6, findup-sync#0.2.1)
├── gulp-util#3.0.4 (array-differ#1.0.0, beeper#1.0.0, object-assign#2.0.0, array-uniq#1.0.2, lodash._reinterpolate#3.0.0, lodash._reescape#3.0.0, lodash._reevaluate#3.0.0, replace-ext#0.0.1, vinyl#0.4.6, chalk#1.0.0, lodash.template#3.6.0, through2#0.6.5, multipipe#0.1.2, dateformat#1.0.11)
└── vinyl-fs#0.3.13 (graceful-fs#3.0.7, strip-bom#1.0.0, defaults#1.0.2, vinyl#0.4.6, mkdirp#0.5.1, through2#0.6.5, glob-stream#3.1.18, glob-watcher#0.0.6)
gulp-uglify#1.2.0 node_modules/gulp-uglify
├── deap#1.0.0
├── through2#0.6.5 (xtend#4.0.0, readable-stream#1.0.33)
├── vinyl-sourcemaps-apply#0.1.4 (source-map#0.1.43)
├── gulp-util#3.0.4 (array-differ#1.0.0, object-assign#2.0.0, beeper#1.0.0, array-uniq#1.0.2, lodash._reevaluate#3.0.0, lodash._reinterpolate#3.0.0, lodash._reescape#3.0.0, replace-ext#0.0.1, minimist#1.1.1, vinyl#0.4.6, chalk#1.0.0, lodash.template#3.6.0, multipipe#0.1.2, dateformat#1.0.11)
└── uglify-js#2.4.19 (uglify-to-browserify#1.0.2, async#0.2.10, source-map#0.1.34, yargs#3.5.4)
0.81s$ npm test
> pourover#1.1.0 test /home/travis/build/hhsnopek/pourover
> mocha
module.js:338
throw err;
^
Error: Cannot find module 'process'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/travis/build/hhsnopek/pourover/test/test.js:2:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at /home/travis/build/hhsnopek/pourover/node_modules/mocha/lib/mocha.js:192:27
at Array.forEach (native)
at Mocha.loadFiles (/home/travis/build/hhsnopek/pourover/node_modules/mocha/lib/mocha.js:189:14)
at Mocha.run (/home/travis/build/hhsnopek/pourover/node_modules/mocha/lib/mocha.js:422:31)
at Object.<anonymous> (/home/travis/build/hhsnopek/pourover/node_modules/mocha/bin/_mocha:398:16)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Test failed. See above for more details.
The command "npm test" exited with 1.
Done. Your build exited with 1.
Remove var process = require('process'); as process is already accessible without requiring it. This removes the require and solves the problem.

Resources