Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS C:ProjectsTest> npm list --global --depth=0
- C:UsersJanAppDataRoamingnpm
- +-- @types/node@7.0.5
- +-- tslint@4.4.2
- `-- typescript@2.2.1
- import fs = require("fs");
- let text = fs.readFileSync("myFile.txt");
- console.log(text);
- PS C:ProjectsTest> tsc .test.ts
- test.ts(1,21): error TS2307: Cannot find module 'fs'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement