Cannot find lib/parse.js error

1,711 views
Skip to first unread message

abhinavvce

unread,
Feb 3, 2014, 7:23:09 PM2/3/14
to appium-...@googlegroups.com
Hi

I am running ./reset.sh --ios on latest code from amster and I am getting the following error

nallagun-MacBookPro:appium nallagun$ ./reset.sh --ios --verbose
---- Resetting / Initializing Appium ----
RESETTING NPM
* Installing new or updated NPM modules (including devDeps)
npm WARN package.json bytes0.2.1 No repository field.
npm WARN package.json assert0.4.9 assert is also the name of a node core module.
npm WARN package.json md5calculator0.0.3 No repository field.
npm WARN package.json node-idevice0.1.2 No repository field.
npm WARN package.json path0.4.9 path is also the name of a node core module.
* Setting git revision data
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module './lib/parse-js'
Warning: Task "setGitRev" not found. Use --force to continue.

Aborted due to warnings.
---- FAILURE: reset.sh exited with status 1 ----

Any pointer. i dont see anyfile named parse-js in lib folder

Thanks

-A

abhinavvce

unread,
Feb 3, 2014, 7:35:45 PM2/3/14
to appium-...@googlegroups.com
I think some modules are not being installed by npm. I am not sure why 


nallagun-MacBookPro:appium nallagun$ ./reset.sh --ios --dev --verbose---- Resetting / Initializing Appium ----
* Dev mode is on, will download/build test apps
RESETTING NPM
* Installing new or updated NPM modules (including devDeps)
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/wd requires request@'~2.33.0' but will load
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/request,
npm WARN unmet dependency which is version 2.27.0
pa...@0.4.9 node_modules/path

buffe...@0.0.6 node_modules/bufferpack

chai-as-...@4.1.0 node_modules/chai-as-promised

col...@0.6.2 node_modules/colors

by...@0.2.1 node_modules/bytes

n...@0.4.2 node_modules/ncp

node...@1.4.1 node_modules/node-uuid

as...@0.2.10 node_modules/async

mkd...@0.3.5 node_modules/mkdirp

bplist...@0.0.4 node_modules/bplist-parser

q...@1.0.0 node_modules/q

node-i...@0.1.2 node_modules/node-idevice

date-...@1.2.15 node_modules/date-utils

bplist-...@0.0.3 node_modules/bplist-creator
└── stream-...@0.2.5

ass...@0.4.9 node_modules/assert
└── ut...@0.10.2 (inhe...@2.0.1)

adm...@0.4.3 node_modules/adm-zip

dif...@0.2.4 node_modules/difflib
└── he...@0.2.3

node-...@0.7.3 node_modules/node-static
├── mi...@1.2.11
└── opti...@0.6.0 (mini...@0.0.5, word...@0.0.2)

gl...@3.2.8 node_modules/glob
├── inhe...@2.0.1
└── mini...@0.2.14 (sig...@1.0.0, lru-...@2.5.0)

argp...@0.1.15 node_modules/argparse
└── under...@1.4.4

ch...@1.8.1 node_modules/chai
├── asserti...@1.0.0
└── deep...@0.1.3 (type-...@0.1.1)

grun...@0.1.13 node_modules/grunt-cli
├── no...@1.0.10 (abb...@1.0.4)
├── res...@0.3.1
└── findu...@0.1.2 (gl...@3.1.21, lod...@1.0.1)

mo...@1.14.0 node_modules/mocha
├── di...@1.0.7
├── gr...@1.7.0
├── comm...@2.0.0
├── de...@0.7.4
├── gl...@3.2.3 (inhe...@2.0.1, grace...@2.0.1, mini...@0.2.14)
└── ja...@0.26.3 (comm...@0.6.1, mkd...@0.3.0)

req...@2.27.0 node_modules/request
├── json-stri...@5.0.0
├── foreve...@0.5.0
├── q...@0.6.6
├── tunnel...@0.3.0
├── oauth...@0.3.0
├── aws-...@0.3.0
├── cooki...@0.3.0
├── mi...@1.2.11
├── form...@0.1.2 (combine...@0.0.4)
├── http-si...@0.10.0 (asser...@0.1.2, as...@0.1.11, ct...@0.5.2)
└── ha...@1.0.0 (cryp...@0.2.2, sn...@0.2.4, bo...@0.4.2, ho...@0.9.1)

pro...@0.2.12 node_modules/prompt
├── reval...@0.1.6
├── pkg...@0.3.0
├── re...@1.0.5 (mute-...@0.0.4)
├── ut...@0.2.1 (deep-...@0.2.1, i...@0.3.2)
└── win...@0.6.2 (cy...@1.0.3, stack...@0.0.8, ey...@0.1.8, pkg...@0.2.3, as...@0.1.22, req...@2.9.203)

grunt-cont...@0.7.2 node_modules/grunt-contrib-jshint
└── jsh...@2.3.0 (console-b...@0.1.6, c...@0.4.5, under...@1.4.4, mini...@0.2.14, she...@0.1.4)

gr...@0.4.2 node_modules/grunt
├── wh...@1.0.5
├── datef...@1.0.2-1.2.3
├── evente...@0.4.13
├── geto...@0.1.0
├── hoo...@0.2.3
├── as...@0.1.22
├── rim...@2.0.3 (grace...@1.1.14)
├── no...@1.0.10 (abb...@1.0.4)
├── ex...@0.1.2
├── lod...@0.9.2
├── mini...@0.2.14 (sig...@1.0.0, lru-...@2.5.0)
├── coffee...@1.3.3
├── undersco...@2.2.1
├── gl...@3.1.21 (inhe...@1.0.0, grace...@1.2.3)
├── iconv...@0.2.11
├── findu...@0.1.2 (lod...@1.0.1)
└── js-...@2.0.5 (esp...@1.0.4)

binary-...@0.1.1 node_modules/binary-cookies
├── under...@1.4.4
└── win...@0.6.2 (cy...@1.0.3, stack...@0.0.8, ey...@0.1.8, as...@0.1.22, pkg...@0.2.3, req...@2.9.203)

monoc...@0.4.0 node_modules/monocle-js
├── harmony...@0.0.11
└── under...@1.4.4

grunt-mo...@0.7.0 node_modules/grunt-mocha-test
└── mo...@1.13.0 (di...@1.0.7, de...@0.7.4, gr...@1.7.0, comm...@0.6.1, gl...@3.2.3, ja...@0.26.3)

na...@0.2.25 node_modules/namp
└── highli...@8.0.0

pl...@0.4.3 node_modules/plist
├── xmlbu...@0.4.3
└── xml...@0.1.19

md5cal...@0.0.3 node_modules/md5calculator
├── cry...@0.0.3
├── eleme...@0.1.3 (s...@0.3.5)
└── un...@0.1.8 (setimm...@1.0.1, pulls...@0.4.0, match-...@0.0.2, fst...@0.1.25, bin...@0.3.0, readabl...@1.0.25)

exp...@3.4.8 node_modules/express
├── met...@0.1.0
├── merge-de...@0.0.1
├── range-...@0.0.4
├── fr...@0.2.0
├── de...@0.7.4
├── cookie-s...@1.0.1
├── buffer...@0.2.1
├── coo...@0.1.0
├── comm...@1.3.2 (keyp...@0.1.0)
├── se...@0.1.4 (mi...@1.2.11)
└── con...@2.12.0 (ui...@0.0.3, raw-...@1.1.2, ba...@0.5.0, negot...@0.3.0, pa...@0.0.1, q...@0.6.6, multi...@2.2.0)
* Setting git revision data
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'uglify-js'
Warning: Task "setGitRev" not found. Use --force to continue.

Aborted due to warnings.
---- FAILURE: reset.sh exited with status 1 ----
nallagun-MacBookPro:appium nallagun$ npm install uglify-is
npm WARN package.json ass...@0.4.9 assert is also the name of a node core module.
npm WARN package.json by...@0.2.1 No repository field.
npm WARN package.json md5cal...@0.0.3 No repository field.
npm WARN package.json node-i...@0.1.2 No repository field.
npm WARN package.json pa...@0.4.9 path is also the name of a node core module.
npm ERR! 404 'uglify-is' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 It was specified as a dependency of 'appium'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Darwin 13.0.0
npm ERR! command "/usr/local/Cellar/node/0.10.25/bin/node" "/usr/local/bin/npm" "install" "uglify-is"
npm ERR! cwd /Users/nallagun/Git/appium
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code E404
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/nallagun/Git/appium/npm-debug.log
npm ERR! not ok code 0
nallagun-MacBookPro:appium nallagun$ npm install uglify-js
npm WARN package.json ass...@0.4.9 assert is also the name of a node core module.
npm WARN package.json by...@0.2.1 No repository field.
npm WARN package.json md5cal...@0.0.3 No repository field.
npm WARN package.json node-i...@0.1.2 No repository field.
npm WARN package.json pa...@0.4.9 path is also the name of a node core module.
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/socket.io-client requires uglify-js@'1.2.5' but will load
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/uglify-js,
npm WARN unmet dependency which is version 2.4.12
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/wd requires request@'~2.33.0' but will load
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/request,
npm WARN unmet dependency which is version 2.27.0
ugli...@2.4.12 node_modules/uglify-js
├── opti...@0.3.7 (word...@0.0.2)
├── uglify-to-...@1.0.1
└── sourc...@0.1.31 (amde...@0.1.0)
nallagun-MacBookPro:appium nallagun$ ./reset.sh --ios --dev --verbose---- Resetting / Initializing Appium ----
* Dev mode is on, will download/build test apps
RESETTING NPM
* Installing new or updated NPM modules (including devDeps)
npm WARN package.json ass...@0.4.9 assert is also the name of a node core module.
npm WARN package.json by...@0.2.1 No repository field.
npm WARN package.json md5cal...@0.0.3 No repository field.
npm WARN package.json node-i...@0.1.2 No repository field.
npm WARN package.json pa...@0.4.9 path is also the name of a node core module.
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/wd requires request@'~2.33.0' but will load
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/request,
npm WARN unmet dependency which is version 2.27.0
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/socket.io-client requires uglify-js@'1.2.5' but will load
npm WARN unmet dependency /Users/nallagun/Git/appium/node_modules/uglify-js,
npm WARN unmet dependency which is version 2.4.12
* Setting git revision data
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'active-x-obfuscator'
Warning: Task "setGitRev" not found. Use --force to continue.

Aborted due to warnings.
---- FAILURE: reset.sh exited with status 1 ----

Any thougths?

I am running on dev-mode

Cheers
-A

abhinavvce

unread,
Feb 3, 2014, 7:41:37 PM2/3/14
to appium-...@googlegroups.com
Just FYI incase anyone sees the same issue I fixed this by running reset in hardcore. It now works fine

./reset.sh --ios --dev --hardcore --verbose
Reply all
Reply to author
Forward
0 new messages