insin / react-hn

React-powered Hacker News client

Home Page:https://insin.github.io/react-hn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm install fails

Boscop opened this issue · comments

I tried to run build this project on Windows 8.1 but it fails:

D:\3rdparty\react-hn>npm install

> phantomjs-prebuilt@2.1.12 install D:\3rdparty\react-hn\node_modules\nwb\node_m
odules\phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantom
js-2.1.1-windows.zip
Saving to C:\Users\me\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
Receiving...
  [=======================================-] 96%
Received 17767K total.
Extracting zip contents
Removing D:\3rdparty\react-hn\node_modules\nwb\node_modules\phantomjs-prebuilt\l
ib\phantom
Copying extracted folder C:\Users\me\AppData\Local\Temp\phantomjs\phantomjs-2.1.
1-windows.zip-extract-1484707321737\phantomjs-2.1.1-windows -> D:\3rdparty\react
-hn\node_modules\nwb\node_modules\phantomjs-prebuilt\lib\phantom
Writing location.js file
Done. Phantomjs binary available at D:\3rdparty\react-hn\node_modules\nwb\node_m
odules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe

> spawn-sync@1.0.15 postinstall D:\3rdparty\react-hn\node_modules\nwb\node_modul
es\spawn-sync
> node postinstall


> react-hn@1.6.1 postinstall D:\3rdparty\react-hn
> npm run build


> react-hn@1.6.1 build D:\3rdparty\react-hn
> mkdir -p dist && npm run lint && cp node_modules/sw-toolbox/sw-toolbox.js dist
/sw-toolbox.js && ./node_modules/.bin/nwb build && npm run copy-manifest && npm
run precache


> react-hn@1.6.1 lint D:\3rdparty\react-hn
> ./node_modules/eslint-config-jonnybuchanan/bin/lint.js src

'.' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "run" "lint"
npm ERR! node v6.9.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! react-hn@1.6.1 lint: `./node_modules/eslint-config-jonnybuchanan/bin/li
nt.js src`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-hn@1.6.1 lint script './node_modules/eslint-config-
jonnybuchanan/bin/lint.js src'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-hn package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./node_modules/eslint-config-jonnybuchanan/bin/lint.js src
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-hn
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-hn
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\3rdparty\react-hn\npm-debug.log

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.9.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! react-hn@1.6.1 build: `mkdir -p dist && npm run lint && cp node_modules
/sw-toolbox/sw-toolbox.js dist/sw-toolbox.js && ./node_modules/.bin/nwb build &&
 npm run copy-manifest && npm run precache`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-hn@1.6.1 build script 'mkdir -p dist && npm run lin
t && cp node_modules/sw-toolbox/sw-toolbox.js dist/sw-toolbox.js && ./node_modul
es/.bin/nwb build && npm run copy-manifest && npm run precache'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-hn package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     mkdir -p dist && npm run lint && cp node_modules/sw-toolbox/sw-tool
box.js dist/sw-toolbox.js && ./node_modules/.bin/nwb build && npm run copy-manif
est && npm run precache
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-hn
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-hn
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\3rdparty\react-hn\npm-debug.log

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.0.14 (node_modules\nw
b\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\nw
b\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN eslint-config-standard-jsx@3.1.0 requires a peer of eslint@>=3.0.0 but
none was installed.
npm WARN eslint-plugin-promise@2.0.1 requires a peer of eslint@^2.10 || ^3.0 but
 none was installed.
npm WARN eslint-config-standard@6.1.0 requires a peer of eslint@>=3.0.0 but none
 was installed.
npm WARN eslint-plugin-standard@2.0.1 requires a peer of eslint@>=3.0.0 but none
 was installed.
npm WARN eslint-config-standard-react@4.1.0 requires a peer of eslint@>=3.0.0 bu
t none was installed.
npm WARN eslint-plugin-react@6.3.0 requires a peer of eslint@^2.0.0 || ^3.0.0 bu
t none was installed.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.9.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! react-hn@1.6.1 postinstall: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-hn@1.6.1 postinstall script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the react-hn package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs react-hn
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls react-hn
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\3rdparty\react-hn\npm-debug.log

My versions are:

>node --version
v6.9.3

>npm --version
3.10.10
commented

Perfect Build on OSX

OSX
node 6.9.4
npm 3.10.10

Friend, I suggest you use cloud 9 to run this project is a more stable environment to make the windows kernel

I haven't been able to repro build failures on Windows, but if you're still running into this issue let me know and we'll reopen.