can not create yeoman project on my mac running OS X Yosemite 10.11.2 (angular-generator) - yeoman

can not create yeoman project on my mac running OS X Yosemite 10.11.2 (angular-generator)
npm WARN EPEERINVALID gulp-karma#0.0.4 requires a peer of karma#>=0.10
<=0.13 but none was installed.
[10:29:09] Using gulpfile ~/Workspace/yeoman/mytodo/gulpfile.js
[10:29:09] Task 'wiredep' is not in your gulpfile
[10:29:09] Please check the documentation for proper gulpfile formatting
? Overwrite package.json? overwrite this and all others
force package.json
create .travis.yml
mytodo# /Users/alan/Workspace/yeoman/mytodo
├── UNMET PEER DEPENDENCY grunt#0.4.x
├─┬ grunt-karma#0.12.1
│ └── lodash#3.10.1
├─┬ gulp-imagemin#2.4.0
│ └─┬ imagemin#4.0.0
│ └─┬ imagemin-svgo#4.2.0
│ └─┬ svgo#0.6.1
│ └─┬ js-yaml#3.4.6
│ └─┬ argparse#1.0.3
│ └── lodash#3.10.1
├─┬ gulp-jshint#1.12.0
│ └── lodash#3.10.1
├─┬ gulp-sass#2.1.1
│ └─┬ node-sass#3.4.2
│ └─┬ sass-graph#2.0.1
│ └── lodash#3.10.1
├── UNMET PEER DEPENDENCY jasmine-core#*
├── UNMET PEER DEPENDENCY karma#^0.13.0 || >= 0.14.0-rc.0
├── karma-jasmine#0.3.6
├─┬ karma-phantomjs-launcher#0.2.1
│ └── lodash#3.10.1
└── UNMET PEER DEPENDENCY phantomjs#>=1.9
npm WARN EPEERINVALID gulp-karma#0.0.4 requires a peer of karma#>=0.10 <=0.13 but none was installed.
npm WARN EPEERINVALID karma-jasmine#0.3.6 requires a peer of jasmine-core#* but none was installed.
npm WARN EPEERINVALID grunt-karma#0.12.1 requires a peer of grunt#0.4.x but none was installed.
npm WARN EPEERINVALID grunt-karma#0.12.1 requires a peer of karma#^0.13.0 || >= 0.14.0-rc.0 but none was installed.
npm WARN EPEERINVALID karma-phantomjs-launcher#0.2.1 requires a peer of karma#>=0.9 but none was installed.
npm WARN EPEERINVALID karma-phantomjs-launcher#0.2.1 requires a peer of phantomjs#>=1.9 but none was installed.
use yeoman angular-generator,when I run 'gulp serve',the console shows:
Uncaught ReferenceError: angular is not defined!

I ran into problems when installing Yeoman on my mac as well. For me updating node/npm fixed the issues.

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)

File not found dependency error while running react native ios app

So I wanted to install a dependency using npm which is react-native-router-flux, but since it wasn't working due to the compatibility versions with react & react-native, it was breaking my project app. So I removed it from the package.json file.
Tried removing it by doing:
npm uninstall --save react-native-router-flux
Even tried to remove it manually from the package.json file, but for some reason, now it looks like my whole project is broken due to that.
Now whenever I do npm start
This is what is being displayed in my terminal:
error: bundling: Error: ENOENT: no such file or directory, open '/Users/marian-mac/Documents/dev/example/myapp/node_modules/react-native-router-flux/node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js'
at Error (native)
at Object.fs.openSync (fs.js:634:18)
at Object.fs.readFileSync (fs.js:502:33)
at Module._readSourceCode (/Users/marian-mac/Documents/dev/example/myapp/node_modules/react-native/packager/src/node-haste/Module.js:200:29)
at Module._getCacheProps (/Users/marian-mac/Documents/dev/example/myapp/node_modules/react-native/packager/src/node-haste/Module.js:420:29)
at Module._readFromTransformCache (/Users/marian-mac/Documents/dev/example/myapp/node_modules/react-native/packager/src/node-haste/Module.js:376:29)
at Module.readCached (/Users/marian-mac/Documents/dev/example/myapp/node_modules/react-native/packager/src/node-haste/Module.js:363:25)
at Promise.resolve.then (/Users/marian-mac/Documents/dev/example/myapp/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:167:29)
at process._tickCallback (internal/process/next_tick.js:103:7)
Bundling `index.ios.js` 94.0% (2941/3033)
I tried to rm -rf /node_modules 100 times and npm install another 100 times and this keeps failing and failing, I can't understand where is trying to access that file! if it was removed!!!
This is my package.json now:
{
"name": "myapp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"moment": "^2.18.1",
"native-base": "^2.1.3",
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
"react-native-flags": "^1.0.0"
},
"devDependencies": {
"babel-jest": "19.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "19.0.2",
"react-test-renderer": "16.0.0-alpha.6"
},
"jest": {
"preset": "react-native"
}
}
Is also throwing WARNINGS for versions and other things too:
npm WARN native-base-shoutem-theme#0.1.3 requires a peer of react#>=15.1.0 but none was installed.
npm WARN #shoutem/animation#0.8.10 requires a peer of react#^15.0.0 but none was installed.
npm WARN react-static-container#1.0.1 requires a peer of react#^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.
This is being thrown for native-base dependency:
UNMET PEER DEPENDENCY react#^0.13.0 || ^0.14.0 || ^15.0.0
Can anyone help me? this is driving me crazy, been 'fighting' with this for hours now and I can't continue with my app.
Thanks in advance.
EDIT:
After changing some versions for react, react-native and native-base. Still having warnings and looks like the packager is trying to access a react-native file within react-native-route-flux.
1) This is my current package.json
{
"name": "myapp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"moment": "^2.18.1",
"native-base": "^2.1.3",
"react": "16.0.0-alpha.3",
"react-native": "^0.43.0",
"react-native-flags": "^1.0.0"
},
"devDependencies": {
"babel-jest": "19.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "19.0.2",
"react-test-renderer": "16.0.0-alpha.6"
},
"jest": {
"preset": "react-native"
}
}
2) These are the warnings:
npm WARN react-native#0.43.4 requires a peer of react#16.0.0-alpha.6 but none was installed.
npm WARN native-base-shoutem-theme#0.1.3 requires a peer of react#>=15.1.0 but none was installed.
npm WARN #shoutem/animation#0.8.10 requires a peer of react#^15.0.0 but none was installed.
npm WARN react-static-container#1.0.1 requires a peer of react#^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.
npm WARN react-test-renderer#16.0.0-alpha.6 requires a peer of react#^16.0.0-alpha.6 but none was installed.
Also throws some UNMET PEER DEPENDENCY on native-base:
├─┬ native-base#2.1.3
│ ├─┬ #shoutem/animation#0.8.10
│ │ ├── hoist-non-react-statics#1.2.0
│ │ └── lodash#4.17.4
│ ├── blueimp-md5#2.7.0
│ ├── clamp#1.0.1
│ ├─┬ color#0.11.4
│ │ ├── clone#1.0.2
│ │ ├─┬ color-convert#1.9.0
│ │ │ └── color-name#1.1.2
│ │ └── color-string#0.3.0
│ ├─┬ fs-extra#2.1.2
│ │ └── jsonfile#2.4.0
│ ├── lodash#4.11.2
│ ├── native-base-shoutem-theme#0.1.3
│ ├── print-message#2.1.0
│ ├── UNMET PEER DEPENDENCY react#^15.0.0
│ ├── react-native-drawer#2.3.0
│ ├── react-native-easy-grid#0.1.7
│ ├── react-native-keyboard-aware-scroll-view#0.2.7
│ ├─┬ react-native-scrollable-tab-view#0.7.4
│ │ ├── UNMET PEER DEPENDENCY react#^0.13.0 || ^0.14.0 || ^15.0.0
│ │ └── react-static-container#1.0.1
│ ├── react-native-vector-icons#4.0.1
│ ├─┬ react-tween-state#0.1.5
│ │ └─┬ raf#3.3.2
│ │ └── performance-now#2.1.0
│ └── tween-functions#1.2.0
├─┬ UNMET PEER DEPENDENCY react#16.0.0-alpha.3
And in console when run, throws the red screen error in the simulator from XCode saying:
No Dimension set for key window
Looks it's a known issue according to his github. But damn, I don't want react-native-router-flux anymore, I don't even have it in my package.json nor installed and is still causing trouble, this dependency is a virus.
Whenever you face such kind situation just be cool and think what all other third parties got installed when the core third party was installed. I faced the similar issue while playing with react-native-router-flux and its stable version is v3.38.0.
From the above question it seems #shoutem/animation#0.8.10 and react-static-container#1.0.1 came with the react-native-router-flux lib. and the other package i.e native-base is compatible with react#>=15.1.0
so i arose to the conclusion, remove #shoutem and react-static-container from node modules. In case there is still the error then i am damn sure the error is because of the native base. Remove native base completely from the project and wait for native base to update up to the latest version of react.
Try the above things and please share the progress as this can help others too.
Note 1: Whenever you see warning while installing packages please don't ignore those warning as they might be destroying the functionality of some package.
To update the package using npm install package-name#x.y, where x.y is the version number you want to install.
Note 2: To install packages yarn is preferred.
Below are the dependencies updated or installed with react-native-router-flux:
"dependencies": {
"lodash.isequal": "^4.5.0",
"react": "^15.4.2",
"react-addons-pure-render-mixin": "^15.4.2",
"react-dom": "^15.4.2",
"react-native": "^0.41.2",
"react-native-experimental-navigation": "0.26.x",
"react-native-tabs": "^1.0.9",
"react-static-container": "1.0.1"
},
As you can see react-static-container is inherited from react-native-router-flux and the other errors are because of native-base, see the below dependencies provided by native-base .
"dependencies": {
"#shoutem/animation": "^0.8.9",
"native-base-shoutem-theme": "0.1.3",
"blueimp-md5": "^2.5.0",
"clamp": "^1.0.1",
"color": "~0.11.1",
"fs-extra": "^2.0.0",
"lodash": "~4.11.1",
"print-message": "^2.1.0",
"react-native-easy-grid": "0.1.7",
"react-native-keyboard-aware-scroll-view": "0.2.7",
"react-native-scrollable-tab-view": "^0.7.1",
"react-native-vector-icons": "~4.0.0",
"react-tween-state": "^0.1.5",
"tween-functions": "^1.0.1",
"react-native-drawer": "^2.3.0"
},
Cheers :)
npm install react-native-reanimated
react-native-gesture-handler
react-native-screens
react-native-safe-area-context
#react-native-community/masked-view

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.

How to control version of zip dependencies?

I'm doing a Proof of Concept with Bower, and trying to create packages without using Git (this is a requirement). I have two packages:
core - main package
datetime - depends on core
In bower.json we declare the version of the package, why the install create an e-tag instead?
Example of install command:
bower install http://path.to.package/core-0.0.1.zip
If I run bower list I can see it (ommited some other dependencies):
├── angular#1.3.12 (1.4.0-build.3831+sha.056a317 available)
├─┬ angular-animate#1.3.12 (1.4.0-build.3831+sha.056a317 available)
│ └── angular#1.3.12 (latest is 1.4.0-build.3831+sha.056a317)
├─┬ angular-cookies#1.3.12 (1.4.0-build.3831+sha.056a317 available)
│ └── angular#1.3.12
├─┬ angular-mocks#1.3.12 (1.3.14-build.49+sha.6b7625a available, latest is 1.4.0
-build.3831+sha.056a317)
│ └── angular#1.3.12
├─┬ angular-resource#1.3.12 (1.4.0-build.3831+sha.056a317 available)
│ └── angular#1.3.12
├─┬ angular-route#1.3.12 (1.4.0-build.3831+sha.056a317 available)
│ └── angular#1.3.12
├─┬ angular-sanitize#1.3.12 (1.4.0-build.3831+sha.056a317 available)
│ └── angular#1.3.12
├─┬ angular-scenario#1.3.12 (1.3.14-build.49+sha.6b7625a available, latest is 1.
4.0-build.3831+sha.056a317)
│ └── angular#1.3.12
├─┬ angular-touch#1.3.12 (1.4.0-build.3831+sha.056a317 available)
│ └── angular#1.3.12
├─┬ bootstrap-sass-official#3.3.3
│ └── jquery#2.0.3 (2.1.3 available)
├── es5-shim#4.1.0
├── json3#3.3.2
├─┬ core#e-tag:53d7d65924
│ ├─┬ angular-strap#0.7.4 (latest is 2.1.6)
│ │ ├── bootstrap#2.3.2 (3.3.2 available)
│ │ ├─┬ bootstrap-datepicker#1.3.1
│ │ │ ├── bootstrap#2.3.2 incompatible with >=3.0 <4.0 (3.3.2 available)
│ │ │ └── jquery#2.0.3 (2.1.3 available)
│ │ ├─┬ bootstrap-select#1.6.3 (2.0.0-beta1 available)
│ │ │ └── jquery#2.0.3 (2.1.3 available)
│ │ ├─┬ bootstrap-timepicker#0.2.6
│ │ │ ├── autotype#e-tag:4fc86fb68
│ │ │ ├── bootstrap#2.3.2 (latest is 3.3.2)
│ │ │ └── jquery#2.0.3 (2.1.3 available)
│ │ └── jquery#2.0.3 (2.1.3 available)
└── datetime#e-tag:4c585cbc3e extraneous
How can I install zip packages and control the dependencies with version?
Bower is currently ignoring the version property specified in bower.json, for more info see the bower.json specification.
When resolving a package from a URL and an ETag header is present in the response, Bower will store the value of this header in the package metadata. When checking if a new version of the package is available, Bower will use the cache ETag (by sending a If-None-Match header).
Notice that Bower's support for working with URL target is limited and is not a drop-in replacement for working with Git. For further details take a look at UrlResolver.js.

Resources