Open XCanG opened 7 years ago
You've somehow installed typescript that is newer than 2.0.10, because the things in the errors were removed in 2.1. I cannot repro because npm install typescript
will still respect package.json and install 2.0.10, so seems you did something else.
Also, it's a normal npm package. You just need to run one npm install
to install all the dependencies and run the build script. No need to install each dependency individually.
Then if you make changes to the source you can rebuild with node ./build.js clean default
or whatever targets you want (see build.js to get all the targets).
Oh, running npm install
create so many folders (193) in node_modules
and automatically run building.
It build now but with some warnings
D:\Docs\libjass-master>npm install
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
> intern@3.4.3 install D:\Docs\libjass-master\node_modules\intern
> node support/fixdeps.js
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`.
npm WARN prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.)
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
> libjass@0.12.0 prepublish D:\Docs\libjass-master
> node ./build.js clean default
[17:46:32] clean - Starting
[17:46:32] clean - Succeeded
[17:46:32] build-tools - Starting
[17:46:32] version.ts - Starting
[17:46:32] version.ts - Succeeded
[17:46:32] build-tools - Succeeded
[17:46:32] libjass.js - Starting
Compiling src\tsconfig.json...
Compile succeeded.
[17:46:37] libjass.js - Succeeded
[17:46:37] libjass.min.js - Starting
[17:46:39] libjass.min.js - Succeeded
[17:46:39] default - Starting
[17:46:39] default - Succeeded
libjass@0.12.0 D:\Docs\libjass-master
+-- async@1.5.2
... big list of folders
But I have js
and css
files into \lib
now, so all is ok?
Yes, warnings from npm install
don't matter.
Ok. Issue may be closed.
P.S. add that command (npm install
) in guide (Readme.md). I think it will help for people, who don't know how to build.
I try to build it on Windows x64 and use nodejs for that. What I do, in root folder execute commands:
npm install typescript
npm install async
npm install async-build
npm install npm
(that was require to build, because it not found) After that I run builder and it return that errorWhat I do wrong? And can you improve instructions in README.md by adding build sections with example how you do building?