sails-migrations icon indicating copy to clipboard operation
sails-migrations copied to clipboard

Breaks on Ubuntu 14.04

Open alexfu opened this issue 8 years ago • 2 comments

On Ubuntu 14.04, I get the following...

root@f32dcd67fa99:/app# npm install sails-migrations
npm ERR! tar.unpack untar error /root/.npm/sails-migrations/2.0.7/package.tgz
npm ERR! Linux 4.0.9-boot2docker
npm ERR! argv "node" "/usr/bin/npm" "install" "sails-migrations"
npm ERR! node v0.12.7
npm ERR! npm  v3.3.3
npm ERR! path /app/node_modules/.staging/sails-migrations-8f658b2f782b7fad6532770007846687/tasks/db:status.coffee
npm ERR! code EPROTO
npm ERR! errno -71

npm ERR! EPROTO, open '/app/node_modules/.staging/sails-migrations-8f658b2f782b7fad6532770007846687/tasks/db:status.coffee'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /app/npm-debug.log

Turns out, I get a similar error (EPROTO) if I do the following...

root@f32dcd67fa99:/app# tar -xvf /root/.npm/sails-migrations/2.0.7/package.tgz
package/package.json
package/README.md
package/LICENSE
package/index.js
package/bin/cli.js
package/bin/run_tests.js
package/lib/sails-migrations.js
package/lib/sails-migrations/create_database.js
package/lib/sails-migrations/current_version.js
package/lib/sails-migrations/drop_database.js
package/lib/sails-migrations/errors.js
package/lib/sails-migrations/generate.js
package/lib/sails-migrations/migrate_to_latest.js
package/lib/sails-migrations/rollback.js
package/lib/sails-migrations/status.js
package/lib/sails-migrations/helpers/config_loader.js
package/lib/sails-migrations/helpers/database_tasks.js
package/lib/sails-migrations/helpers/migrator_loader.js
package/lib/sails-migrations/helpers/sails_integration.js
package/tasks/db:status.coffee
tar: package/tasks/db\:status.coffee: Cannot open: Protocol error
tar: Exiting with failure status due to previous errors

Not exactly sure why this is happening.

alexfu avatar Sep 20 '15 20:09 alexfu