Found an issue when build the repo on Windows

Introduction

I was playing with Steem APIs and come across this repo. It supports many categories of APIs so I think it might be useful for me. I cloned the repo locally and tried run the tests. I tried some basic commands to build the code and run tests, but they don't work on my Windows desktop.

This issue has been reported to the original repo:
Issue 314: NPM run scripts fail when run on Windows

image.png

Reproduce steps

1 Clone repo

git clone https://github.com/steemit/steem-js.git
cd steem-jss

2 Install dependencies

npm install

An error was found here when I used npm@4.x version. In this version, npm install will automatically run prepublish script which builds the code and then fails due to the issue as described below. After upgrading npm to 5.6.0, I can by passed this step because it does not run prepublish script anymore with npm install.

3 Build code and run tests

npm run build

I got error due to some platform specific commands. This is the same as the test script which can be run by:

npm test

Expected behaviour

All install, build and test scripts should run without problem.

Actual behaviour

All three scripts can't be run on Windows though install command could be bypassed by upgrading npm to 5.x.

System information

Windows 10 Home 64bit
node: v8.9.4
npm: v5.6.0
GnuWin32 utilities are in my PATH so I can use gzip and du commands.



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
3 columns
2 columns
1 column
4 Comments