I want to execute the following commands in an offline machine (A) but the seconds point does not work:
npm install
npm run tsc
We have a machine (A) that contains my TypeScript APP and another machine (B) that acts as Artifactory (contains all the npm dependencies).
The problem here:
My idea was to install my TypeScript APP into another machine (C) that does not have proxy restrictions doing the following "steps" into machine C (machines A and C has the same Operative System):
The problem here is after executing "npm run tsc" into machine A there are a lot of "node_modules" ERRORs and I don't understand why. I share with you three example of hundreds of them:
node_modules/rxjs/Scheduler.d.ts(53,67): error TS1109: Expression expected.
node_modules/rxjs/Scheduler.d.ts(53,83): error TS1109: Expression expected.
node_modules/rxjs/Scheduler.d.ts(53,86): error TS1005: ';' expected.
FYI - I could change the machine A to be online temporary and "npm install" + "npm run tsc" worked properly. Then, I think there is something bad in the previous "steps".
Info about my installations:
bash-4.2# npm -v
3.10.10
bash-4.2# node -v
v6.9.5
bash-4.2# tsc -v
Version 1.8.10
Many thanks!
I finally found the issue in "node_modules" folder.
It turns out that:
Then, the steps to fix it were the following (inside "node_modules") folder:
Cheers, Paco.