node.js - Why can't Travis CI create a directory during an npm install? -


my recent commit has somehow caused travis ci stop working when tries run npm install. change correcting typo calling javascript file (from foobar/foo-bar.js foo-bar/foo-bar.js), i'm not sure if commit cause. error receive travis ci follows:

bower                                               eacces eacces, mkdir '/public'  stack trace: error: eacces, mkdir '/public'     @ error (native)  console trace: error     @ standardrenderer.error (/home/travis/build/myworkplace/mysite/node_modules/bower/lib/renderers/standardrenderer.js:83:37)     @ logger.<anonymous> (/home/travis/build/myworkplace/mysite/node_modules/bower/lib/bin/bower.js:110:26)     @ logger.emit (events.js:107:17)     @ logger.emit (/home/travis/build/myworkplace/mysite/node_modules/bower/lib/node_modules/bower-logger/lib/logger.js:29:39)     @ /home/travis/build/myworkplace/mysite/node_modules/bower/lib/commands/index.js:48:20     @ _rejected (/home/travis/build/myworkplace/mysite/node_modules/bower/lib/node_modules/q/q.js:844:24)     @ /home/travis/build/myworkplace/mysite/node_modules/bower/lib/node_modules/q/q.js:870:30     @ promise.when (/home/travis/build/myworkplace/mysite/node_modules/bower/lib/node_modules/q/q.js:1122:31)     @ promise.promise.promisedispatch (/home/travis/build/myworkplace/mysite/node_modules/bower/lib/node_modules/q/q.js:788:41)     @ /home/travis/build/myworkplace/mysite/node_modules/bower/lib/node_modules/q/q.js:604:44 system info: bower version: 1.7.7 node version: 0.12.2 os: linux 3.13.0-40-generic x64 

unfortunately, travis ci set contractor, don't know more information provide, if there's more help, i'll happy find out.

edit:
looking @ log successful run, looks mkdir line new build...

edit2: here .travis.yml , bower.json:

.travis.yml

language: node_js node_js: - 0.12.2 services: - mongodb before_install: npm install -g grunt-cli install: npm install before_script: grunt && grunt --target=admin env:   global:   - node_env: test   - port: 5000   - ssl: "off"   - token_secret: [xxx]   - mongo_uri: mongodb://localhost:27017/myworkplace-test   - bucket: myworkplacebucket   - aws_region: us-west-2   - cdn: https://[xxx].cloudfront.net   - postmark_api_key: postmark_api_test   - mail_from_name: myworkplace   - mail_from_email: user@myworkplace.com   - airbrake: [xxx]   - secure: [xxx]   - secure: [xxx] deploy:   - provider: s3     access_key_id: [xxx]     secret_access_key:       secure: [xxx]     bucket: "myworkplace-builds"     skip_cleanup: true     region: us-west-2     local_dir: dist     on:       branch: master   - provider: s3     access_key_id: [xxx]     secret_access_key:       secure: [xxx]     bucket: "myworkplace-builds-dev"     skip_cleanup: true     region: us-west-2     local_dir: dist     on:       branch: dev   - provider: codedeploy     access_key_id: [xxx]     secret_access_key:       secure: [xxx]     revision_type: github     region: us-west-2     application: mysite     deployment_group: devs     on:       branch: dev   - provider: codedeploy     access_key_id: [xxx]     secret_access_key:       secure: [xxx]     revision_type: github     region: us-west-2     application: mysite     deployment_group: production     on:       branch: master notifications:   slack: myworkplace:[xxx] 

bower.json

{   "name": "myworkplace",   "version": "0.0.1",   "authors": [     "foo user <user@myworkplace.com>"   ],   "license": "mit",   "private": true,   "ignore": [     "**/.*",     "node_modules",     "bower_components",     "test",     "tests"   ],   "dependencies": {     "angular": "1.3.11",     "jquery": "2.1.2",     "angular-route": "1.3.11",     "angular-resource": "1.3.11",     "angular-animate": "1.3.11",     "angular-mocks": "1.3.11",     "less": "2.5.1",     "bootstrap": "3.3.2",     "angular-bootstrap": "0.12.1",     "moment": "2.8.3",     "html5-boilerplate": "4.3.0",     "lodash": "3.1.0",     "angular-bootstrap-show-errors": "2.0.0",     "autofill-event": "1.0.0",     "angular-ui-router": "0.2.11",     "nginfinitescroll": "1.0.0",     "angular-file-upload": "1.1.5",     "d3": "3.3.10",     "iso-currency": "~0.2.1",     "angular-moment": "0.8.2",     "angular-filter": "0.5.1",     "angular-busy": "~4.1.2",     "angular-csv-import": "0.0.14",     "angulartics": "0.17.2",     "angular-toggle-switch": "1.0.0",     "ng-idle": "1.0.0",     "iso-4217-currency-codes-angular": "~1.0.1"   },   "resolutions": {     "angular": "1.3.11",     "d3": "3.5.5"   } } 

edit3: reran previous travis build succeeded, , failed same error. leads me think sort of update module has made no longer work. i'm not sure though. of note, perhaps, lines saying graceful-fs version 3 , before fail on newer node releases. please update graceful-fs@^4.0.0 possible. don't know how update though, since graceful-fs isn't in package.json gets committed repository...

turns out root cause of issue package updated , no longer working in environment. fixed locking in versions in package.json versions know worked previously.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -