I followed the first install procedure in the readme.md on Win7pro:
Try and install it on Windows.
Use the first method so install yarn
Use the first method (the installer)
First install Node.js from
download node-v8.10.0-x64.msi
run the installer to install it.
Appears to have installed correctly.
back to
Download yarn-1.5.1.msi
run the installer to install it.
install git for dos from
Git-2.15.1.2-64-bit.exe
and install it.
In my case I installed gnu make from
http://gnuwin32.sourceforge.net/packages/make.htm
(your make should do the same I expect)
make-3.81.exe
and added it to my windows path (which it doesn’t do by itself) then in a git command prompt (because the code wants git to be available). Then I changed in to the repository directory in the git cmd window and I ran
from a command prompt?
yarn add fritzing/fritzing-parts-api-client-js
then the make test that @paulvollmer suggested above that I run. That creates this error:
C:\Users\Owner\fritzing-parts-api-client-js>make test
FAIL test\index.test.js
● Test suite failed to run
TypeError: C:/Users/Owner/fritzing-parts-api-client-js/src/index.js: Cannot
read property ‘some’ of undefined
at VisitState.onEnter (node_modules/istanbul-lib-instrument/dist/visitor.j
s:141:72)
at VisitState.wrappedEntry (node_modules/istanbul-lib-instrument/dist/visi
tor.js:336:14)
at NodePath._call (node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (node_modules/babel-traverse/lib/path/context.js:105:12)
at TraversalContext.visitQueue (node_modules/babel-traverse/lib/context.js
:150:16)
at TraversalContext.visitSingle (node_modules/babel-traverse/lib/context.j
s:108:19)
at TraversalContext.visit (node_modules/babel-traverse/lib/context.js:192:
19)
at Function.traverse.node (node_modules/babel-traverse/lib/index.js:114:17
)
at NodePath.visit (node_modules/babel-traverse/lib/path/context.js:115:19)
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---|---|---|---|---|---|
All files | 0 | 0 | 0 | 0 | |
---------- | ---------- | ---------- | ---------- | ---------- | ------------------- |
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 7.285s
Ran all test suites.
make: *** [test] Error 1
C:\Users\Owner\fritzing-parts-api-client-js>
Hopefully that will mean something to him (it doesn’t to me other than it isn’t happy about something ).
Peter