rlidwka / sinopia

Private npm repository server
5.51k stars 656 forks source link

Does not work on Windows #61

Open bajtos opened 10 years ago

bajtos commented 10 years ago

When running on Windows, the first attempt to publish a package crashes the whole process via a C/C++ error.

See baudehlo/node-fs-ext#30 for more details.

Anachron commented 10 years ago

:+1:

Really want to use it on Windows, but errors out:

npm ERR! Error: ENOENT, chmod 'D:\apps\NWM\nodejs\node_modules\sinopia\node_modu
les\cookies\node_modules\keygrip\test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\apps\\NWM\\nodejs\\\\node.exe" "D:\\apps\\NWM\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "sinopia"
npm ERR! cwd D:\apps\NWM\nodejs
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.26
npm ERR! path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\cookies\node_
modules\keygrip\test.js
npm ERR! fstream_path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\cooki
es\node_modules\keygrip\test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\apps\NWM\nodejs\node_modules\npm\node_modules\fstream\
lib\writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'D:\apps\NWM\nodejs\node_modules\sinopia\node_modu
les\request\node_modules\hawk\test\index.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\apps\\NWM\\nodejs\\\\node.exe" "D:\\apps\\NWM\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "sinopia"
npm ERR! cwd D:\apps\NWM\nodejs
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.26
npm ERR! path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\request\node_
modules\hawk\test\index.js
npm ERR! fstream_path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\reque
st\node_modules\hawk\test\index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\apps\NWM\nodejs\node_modules\npm\node_modules\fstream\
lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'D:\apps\NWM\nodejs\node_modules\sinopia\node_modu
les\request\node_modules\form-data\node_modules\combined-stream\test\fixture\fil
e2.txt'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\apps\\NWM\\nodejs\\\\node.exe" "D:\\apps\\NWM\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "sinopia"
npm ERR! cwd D:\apps\NWM\nodejs
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.26
npm ERR! path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\request\node_
modules\form-data\node_modules\combined-stream\test\fixture\file2.txt
npm ERR! fstream_path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\reque
st\node_modules\form-data\node_modules\combined-stream\test\fixture\file2.txt
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\apps\NWM\nodejs\node_modules\npm\node_modules\fstream\
lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'D:\apps\NWM\nodejs\node_modules\sinopia\node_modu
les\request\node_modules\form-data\node_modules\async\lib\async.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\apps\\NWM\\nodejs\\\\node.exe" "D:\\apps\\NWM\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "sinopia"
npm ERR! cwd D:\apps\NWM\nodejs
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.26
npm ERR! path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\request\node_
modules\form-data\node_modules\async\lib\async.js
npm ERR! fstream_path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\reque
st\node_modules\form-data\node_modules\async\lib\async.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\apps\NWM\nodejs\node_modules\npm\node_modules\fstream\
lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: EPERM, unlink 'D:\apps\NWM\nodejs\node_module
s\sinopia\node_modules\js-yaml\node_modules\esprima\esprima.js'
npm ERR! error rolling back  sinopia@0.7.1 { [Error: EPERM, unlink 'D:\apps\NWM\
nodejs\node_modules\sinopia\node_modules\js-yaml\node_modules\esprima\esprima.js
']
npm ERR! error rolling back   errno: 50,
npm ERR! error rolling back   code: 'EPERM',
npm ERR! error rolling back   path: 'D:\\apps\\NWM\\nodejs\\node_modules\\sinopi
a\\node_modules\\js-yaml\\node_modules\\esprima\\esprima.js' }
npm ERR! fs-ext@0.3.2 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fs-ext@0.3.2 install script.
npm ERR! This is most likely a problem with the fs-ext package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls fs-ext
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\apps\\NWM\\nodejs\\\\node.exe" "D:\\apps\\NWM\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "sinopia"
npm ERR! cwd D:\apps\NWM\nodejs
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.26
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat 'D:\apps\NWM\nodejs\node_modules\sinopia\node_modu
les\request\node_modules\tough-cookie\lib\pubsuffix.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\apps\\NWM\\nodejs\\\\node.exe" "D:\\apps\\NWM\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "sinopia"
npm ERR! cwd D:\apps\NWM\nodejs
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.26
npm ERR! path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\request\node_
modules\tough-cookie\lib\pubsuffix.js
npm ERR! fstream_path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\reque
st\node_modules\tough-cookie\lib\pubsuffix.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\apps\NWM\nodejs\node_modules\npm\node_modules\fstream\
lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'D:\apps\NWM\nodejs\node_modules\sinopia\node_modu
les\request\node_modules\http-signature\node_modules\ctype\ctype.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\apps\\NWM\\nodejs\\\\node.exe" "D:\\apps\\NWM\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "sinopia"
npm ERR! cwd D:\apps\NWM\nodejs
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.26
npm ERR! path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\request\node_
modules\http-signature\node_modules\ctype\ctype.js
npm ERR! fstream_path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\reque
st\node_modules\http-signature\node_modules\ctype\ctype.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\apps\NWM\nodejs\node_modules\npm\node_modules\fstream\
lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'D:\apps\NWM\nodejs\node_modules\sinopia\node_modu
les\js-yaml\node_modules\argparse\lib\action_container.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\apps\\NWM\\nodejs\\\\node.exe" "D:\\apps\\NWM\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "sinopia"
npm ERR! cwd D:\apps\NWM\nodejs
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.26
npm ERR! path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\js-yaml\node_
modules\argparse\lib\action_container.js
npm ERR! fstream_path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\js-ya
ml\node_modules\argparse\lib\action_container.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\apps\NWM\nodejs\node_modules\npm\node_modules\fstream\
lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm WARN optional dep failed, continuing http-signature@0.10.0
npm ERR! Error: ENOENT, lstat 'D:\apps\NWM\nodejs\node_modules\sinopia\node_modu
les\js-yaml\node_modules\esprima\esprima.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/isaacs/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\apps\\NWM\\nodejs\\\\node.exe" "D:\\apps\\NWM\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "sinopia"
npm ERR! cwd D:\apps\NWM\nodejs
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.3.26
npm ERR! path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\js-yaml\node_
modules\esprima\esprima.js
npm ERR! fstream_path D:\apps\NWM\nodejs\node_modules\sinopia\node_modules\js-ya
ml\node_modules\esprima\esprima.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\apps\NWM\nodejs\node_modules\npm\node_modules\fstream\
lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
rlidwka commented 10 years ago

I made fs-ext optional in 0.8.0 (752d0f62f077e9421434301618dd659cf5830297), so now it should be installable.

File locking is used to protect against multiple users publishing/installing different versions of the same package simultaneously, and since windows is used in single-user environments anyway, I guess you'll be fine without it.

Anachron commented 10 years ago

You are right, it did make the trick! It now works on Windows, got it up and running. Will try to give feedback later. Thanks!

VikramArjunS commented 10 years ago

In windows I get the following error when I do NPM install of sinopia. Can you please let me know how to have a work around it. With this error server still runs but when I try to do add user I get "Unable to parse json" error .\crypt3.cc(6): fatal error C1083: Cannot open include file: 'unistd.h': No su h file or directory [d:\sandbox\node-crypt3-master\build\crypt3.vcxproj]

rlidwka commented 10 years ago

With this error server still runs but when I try to do add user I get "Unable to parse json" error

full npm logs, please... it's hard to say anything without them

VikramArjunS commented 10 years ago

Here is more information.. please let me know if you need debug level information, i can send you the npm-debug.log as well. I am on Windows 8.1 machine and I also tried in windows 7 machine i am on nodev0.10.28

npm http GET https://registry.npmjs.org/fs-ext npm http GET https://registry.npmjs.org/bunyan npm http GET https://registry.npmjs.org/crypt3 npm http 304 https://registry.npmjs.org/semver npm http 304 https://registry.npmjs.org/express npm http 304 https://registry.npmjs.org/js-yaml npm http 304 https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/minimatch npm http 304 https://registry.npmjs.org/bunyan npm http 304 https://registry.npmjs.org/cookies npm http 304 https://registry.npmjs.org/fs-ext npm http 304 https://registry.npmjs.org/crypt3

crypt3@0.1.5 install D:\sandbox\node_modules\sinopia\node_modules\crypt3 node-gyp rebuild

D:\sandbox\node_modules\sinopia\node_modules\crypt3>node "C:\Program Files (x86) \nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node- gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. crypt3.cc

..\crypt3.cc(6): fatal error C1083: Cannot open include file: 'unistd.h': No su ch file or directory [D:\sandbox\node_modules\sinopia\node_modules\crypt3\build \crypt3.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe fail ed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_mo dules\npm\node_modules\node-gyp\lib\build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807: 12) gyp ERR! System Windows_NT 6.2.9200 gyp ERR! command "node" "C:\Program Files (x86)\nodejs\node_modules\npm\nod e_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd D:\sandbox\node_modules\sinopia\node_modules\crypt3 gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok npm http GET https://registry.npmjs.org/keygrip npm http GET https://registry.npmjs.org/sigmund npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/minimist npm http GET https://registry.npmjs.org/basic-auth npm http GET https://registry.npmjs.org/buffer-crc32 npm http GET https://registry.npmjs.org/connect npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/depd npm http GET https://registry.npmjs.org/media-typer npm http GET https://registry.npmjs.org/methods npm http GET https://registry.npmjs.org/escape-html npm http GET https://registry.npmjs.org/range-parser npm http GET https://registry.npmjs.org/proxy-addr npm http GET https://registry.npmjs.org/parseurl npm http GET https://registry.npmjs.org/vary npm http GET https://registry.npmjs.org/send npm http GET https://registry.npmjs.org/cookie npm http GET https://registry.npmjs.org/fresh npm http GET https://registry.npmjs.org/cookie-signature npm http GET https://registry.npmjs.org/merge-descriptors npm http GET https://registry.npmjs.org/mv npm http GET https://registry.npmjs.org/bl npm http GET https://registry.npmjs.org/forever-agent npm http GET https://registry.npmjs.org/json-stringify-safe npm http GET https://registry.npmjs.org/mime-types npm http GET https://registry.npmjs.org/caseless npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/tunnel-agent npm http GET https://registry.npmjs.org/form-data npm http GET https://registry.npmjs.org/http-signature npm http GET https://registry.npmjs.org/tough-cookie npm http GET https://registry.npmjs.org/aws-sign2 npm http GET https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/stringstream npm http GET https://registry.npmjs.org/hawk npm http GET https://registry.npmjs.org/oauth-sign npm http 304 https://registry.npmjs.org/depd npm http 304 https://registry.npmjs.org/media-typer npm http 304 https://registry.npmjs.org/methods npm http 304 https://registry.npmjs.org/range-parser npm http 304 https://registry.npmjs.org/fresh npm http 304 https://registry.npmjs.org/proxy-addr npm http 304 https://registry.npmjs.org/send npm http 304 https://registry.npmjs.org/parseurl npm http 304 https://registry.npmjs.org/keygrip npm http 304 https://registry.npmjs.org/cookie npm http 304 https://registry.npmjs.org/escape-html npm http 304 https://registry.npmjs.org/cookie-signature npm http 304 https://registry.npmjs.org/bl npm http 304 https://registry.npmjs.org/merge-descriptors npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/tunnel-agent npm http 304 https://registry.npmjs.org/form-data npm http 304 https://registry.npmjs.org/caseless npm http 304 https://registry.npmjs.org/http-signature npm http 304 https://registry.npmjs.org/aws-sign2 npm http 304 https://registry.npmjs.org/tough-cookie npm http 304 https://registry.npmjs.org/basic-auth npm http 304 https://registry.npmjs.org/buffer-crc32 npm http 304 https://registry.npmjs.org/debug npm http 304 https://registry.npmjs.org/connect npm http 304 https://registry.npmjs.org/vary npm http 304 https://registry.npmjs.org/forever-agent npm http 304 https://registry.npmjs.org/stringstream npm http 304 https://registry.npmjs.org/json-stringify-safe npm http 304 https://registry.npmjs.org/mime-types npm http 304 https://registry.npmjs.org/hawk npm http 304 https://registry.npmjs.org/oauth-sign npm http 304 https://registry.npmjs.org/qs npm http 304 https://registry.npmjs.org/mv npm http GET https://registry.npmjs.org/ipaddr.js npm http GET https://registry.npmjs.org/combined-stream npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/keypress npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/destroy npm http GET https://registry.npmjs.org/ncp npm http GET https://registry.npmjs.org/rimraf npm http GET https://registry.npmjs.org/ms npm http GET https://registry.npmjs.org/on-finished npm http GET https://registry.npmjs.org/readable-stream npm http GET https://registry.npmjs.org/asn1 npm http GET https://registry.npmjs.org/assert-plus npm http GET https://registry.npmjs.org/ctype npm http GET https://registry.npmjs.org/punycode npm http GET https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/cryptiles npm http GET https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/sntp npm http GET https://registry.npmjs.org/body-parser npm http GET https://registry.npmjs.org/cookie-parser npm http GET https://registry.npmjs.org/basic-auth-connect npm http GET https://registry.npmjs.org/compression npm http GET https://registry.npmjs.org/connect-timeout npm http GET https://registry.npmjs.org/errorhandler npm http GET https://registry.npmjs.org/express-session npm http GET https://registry.npmjs.org/bytes npm http GET https://registry.npmjs.org/csurf npm http GET https://registry.npmjs.org/finalhandler npm http GET https://registry.npmjs.org/on-headers npm http GET https://registry.npmjs.org/method-override npm http GET https://registry.npmjs.org/response-time npm http GET https://registry.npmjs.org/serve-static npm http GET https://registry.npmjs.org/type-is npm http GET https://registry.npmjs.org/morgan npm http GET https://registry.npmjs.org/pause npm http GET https://registry.npmjs.org/serve-index npm http GET https://registry.npmjs.org/serve-favicon npm http GET https://registry.npmjs.org/multiparty npm http GET https://registry.npmjs.org/vhost npm http 304 https://registry.npmjs.org/keypress npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/combined-stream npm http 304 https://registry.npmjs.org/ipaddr.js npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/ms npm http 304 https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/on-finished npm http 304 https://registry.npmjs.org/ncp npm http 304 https://registry.npmjs.org/asn1 npm http 304 https://registry.npmjs.org/ctype npm http 304 https://registry.npmjs.org/readable-stream npm http 304 https://registry.npmjs.org/assert-plus npm http 304 https://registry.npmjs.org/punycode npm http 304 https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/delayed-stream npm http 304 https://registry.npmjs.org/hoek npm http 304 https://registry.npmjs.org/destroy npm http 304 https://registry.npmjs.org/sntp npm http 304 https://registry.npmjs.org/cookie-parser npm http 304 https://registry.npmjs.org/connect-timeout npm http 304 https://registry.npmjs.org/body-parser npm http 304 https://registry.npmjs.org/method-override npm http 304 https://registry.npmjs.org/on-headers npm http 304 https://registry.npmjs.org/serve-static npm http 304 https://registry.npmjs.org/morgan npm http 304 https://registry.npmjs.org/type-is npm http 304 https://registry.npmjs.org/response-time npm http 304 https://registry.npmjs.org/serve-index npm http 304 https://registry.npmjs.org/minimist npm http 304 https://registry.npmjs.org/cryptiles npm http 304 https://registry.npmjs.org/errorhandler npm http 304 https://registry.npmjs.org/express-session npm http 304 https://registry.npmjs.org/compression npm http 304 https://registry.npmjs.org/serve-favicon npm http 304 https://registry.npmjs.org/multiparty npm http 304 https://registry.npmjs.org/vhost npm http 304 https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/pause npm http 304 https://registry.npmjs.org/delayed-stream npm http 304 https://registry.npmjs.org/lru-cache npm http 304 https://registry.npmjs.org/bytes npm ERR! Error: ENOENT, lstat 'D:\sandbox\node_modules\sinopia\node_modules\js-y aml\bower.json' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sinopia" npm ERR! cwd D:\sandbox\sinopia npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! path D:\sandbox\node_modules\sinopia\node_modules\js-yaml\bower.json npm ERR! fstream_path D:\sandbox\node_modules\sinopia\node_modules\js-yaml\bower .json npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul es\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http 304 https://registry.npmjs.org/basic-auth-connect npm http 304 https://registry.npmjs.org/finalhandler npm ERR! Error: ENOENT, lstat 'D:\sandbox\node_modules\sinopia\node_modules\requ est\node_modules\http-signature\node_modules\ctype\tst\ctype\tst.readSize.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sinopia" npm ERR! cwd D:\sandbox\sinopia npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! path D:\sandbox\node_modules\sinopia\node_modules\request\node_modules\ http-signature\node_modules\ctype\tst\ctype\tst.readSize.js npm ERR! fstream_path D:\sandbox\node_modules\sinopia\nodemodules\request\node modules\http-signature\node_modules\ctype\tst\ctype\tst.readSize.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul es\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'D:\sandbox\node_modules\sinopia\node_modules\requ est\node_modules\hawk\node_modules\hoek\test\index.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sinopia" npm ERR! cwd D:\sandbox\sinopia npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! path D:\sandbox\node_modules\sinopia\node_modules\request\node_modules\ hawk\node_modules\hoek\test\index.js npm ERR! fstream_path D:\sandbox\node_modules\sinopia\nodemodules\request\node modules\hawk\node_modules\hoek\test\index.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul es\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'D:\sandbox\node_modules\sinopia\node_modules\mini match\node_modules\lru-cache\test\basic.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sinopia" npm ERR! cwd D:\sandbox\sinopia npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! path D:\sandbox\node_modules\sinopia\node_modules\minimatch\node_module s\lru-cache\test\basic.js npm ERR! fstream_path D:\sandbox\node_modules\sinopia\node_modules\minimatch\nod e_modules\lru-cache\test\basic.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files (x86)\nodejs\node_modules\npm\node_modul es\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm http 304 https://registry.npmjs.org/csurf npm WARN optional dep failed, continuing form-data@0.1.4

fs-ext@0.3.2 install D:\sandbox\node_modules\sinopia\node_modules\fs-ext node-gyp configure build

Anachron commented 10 years ago

I guess that's because there is a problem with this file so it cannot load the dependencies? npm ERR! Error: ENOENT, lstat 'D:\sandbox\node_modules\sinopia\node_modules\js-y aml\bower.json'

Did you try to clear the cache?

rlidwka commented 10 years ago

I think it's better to go to https://github.com/npm/npm with ENOENT issues.

Anachron commented 10 years ago

Since I got it running properly, I would most likekly to close it. However, I was not the one opening it originally.

VikramArjunS commented 10 years ago

i cleared npm cache and did an install but it still failed :(

VikramArjunS commented 10 years ago

btw it works fine in linux

kareljan commented 8 years ago

Not working for me on windows. Install fails all over the place.

chaim1221 commented 7 years ago

Is this still an open issue? b/c evaluating for primarily Windows domain this does not look good

chaim1221 commented 7 years ago

I believe I have answered my own question:

Attempt at Windows install has gone something like this:

> npm install sinopia "You don't have python." > choco install python OK > npm install sinopia "Python environment variable not set." > setx /m PYTHON "C:\Program Files\Python35\python.exe" (New window...) > npm install sinopia "Python is the wrong version." > npm install -g node-gyp > npm install sinopia "Python is still the wrong version." > choco install python -version 2.7.6 --allow-downgrade > setx /m PYTHON "C:\Python27\python.exe" (New window...) > npm install sinopia (Hangs) > rm node_modules -Recurse -Force > npm install sinopia (Hangs, then...) gyp ERR! stack Error:``C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe\``failed with exit code: 1