Closed qbolec closed 8 years ago
Tsd is deprecated. Take a look at Typings
For the record in hope it will help someone in similar situation:
The problem was in that tsd
depends on update-notifier
which depends on configstore
which depends on "graceful-fs": "^3.0.1"
. While the code runs fine with graceful-fs@3.0.8
it fails with graceful-fs@3.0.11
, probably because of some bug introduced in natives (another modul on which graceful-fs@3.0.11
depends) in the line
fn = runInThisContext(source, nm.filename, true);
The solution for me was to invoke npm shrinkwrap --dev
on my working production server to freeze all the versions of all the (sub)dependencies of my project, and commit the generated npm-shrinkwrap.json
. Then on the not working server, checkout this file and do rm -r node_modules; npm install
.
When I run
./node_modules/.bin/tsd
without any arguments (or--version
) I get the following error:I do not know what to do. I have a similary configured (same version of npm and node) machine which works fine. I suspect some network-related issues, but the error message above seems rather unhelpful to me.