Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Can't run JS tests on Vagrant/Debian #2971

Closed
techtonik opened this issue Nov 30, 2014 · 2 comments
Closed

Can't run JS tests on Vagrant/Debian #2971

techtonik opened this issue Nov 30, 2014 · 2 comments
Assignees

Comments

@techtonik
Copy link
Contributor

Looks like npm is trying to create symlinks on FS that doesn't support them (host is Windows). Any known workarounds?

$ make jstest
...
npm http 200 https://registry.npmjs.org/glob/-/glob-3.2.11.tgz
npm ERR! Error: UNKNOWN, symlink '../nopt/bin/nopt.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-39-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path ../nopt/bin/nopt.js
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR! error rolling back Error: UNKNOWN, unlink '/vagrant/node_modules/phantomjs/node_modules/adm-zip/MIT-LICENSE.txt'
npm ERR! error rolling back  phantomjs@1.9.12 { [Error: UNKNOWN, unlink '/vagrant/node_modules/phantomjs/node_modules/adm-zip/MIT-LICENSE.txt']
npm ERR! error rolling back   errno: -1,
npm ERR! error rolling back   code: 'UNKNOWN',
npm ERR! error rolling back   path: '/vagrant/node_modules/phantomjs/node_modules/adm-zip/MIT-LICENSE.txt' }
npm http GET https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz
npm ERR! Error: ENOENT, chmod '/vagrant/node_modules/phantomjs/node_modules/request/index.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-39-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /vagrant/node_modules/phantomjs/node_modules/request/index.js
npm ERR! fstream_path /vagrant/node_modules/phantomjs/node_modules/request/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz
♥make: *** [node_modules] Error 130
@techtonik
Copy link
Contributor Author

npm/npm#2380 is the upstream issue.

techtonik added a commit that referenced this issue Nov 30, 2014
There are filesystems without symlinks (Vagrant on Windows Host).
See the error at #2971
@techtonik
Copy link
Contributor Author

Now travis fails with:

env/bin/pyflakes bin gratipay tests
./node_modules/.bin/grunt test
make: ./node_modules/.bin/grunt: Command not found
make: *** [jstest] Error 127

UPD: Looks like a problem with outdated Makefile call
https://stackoverflow.com/questions/14695845/why-does-grunt-fail

techtonik added a commit that referenced this issue Dec 5, 2014
Travis started to fail after disabling symlinking in #2971 to fix
npm failures to install stuff on filesystems that don't support
symlinks.

CLI Grunt interface is now contained in grunt-cli package.

https://stackoverflow.com/questions/14695845/why-does-grunt-fail
@techtonik techtonik self-assigned this Dec 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant