Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. PS C:ProjectsTest> npm list --global --depth=0
  2. C:UsersJanAppDataRoamingnpm
  3. +-- @types/node@7.0.5
  4. +-- tslint@4.4.2
  5. `-- typescript@2.2.1
  6.  
  7. import fs = require("fs");
  8. let text = fs.readFileSync("myFile.txt");
  9. console.log(text);
  10.  
  11. PS C:ProjectsTest> tsc .test.ts
  12. test.ts(1,21): error TS2307: Cannot find module 'fs'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement