Closed syntologica-1 closed 11 years ago
It works under W7 32bit - just FYI.
Thanks for reporting this @syntologica-1 -- I've seen some issues on Solaris with node-gyp.
Can you replicate on node 0.8.22, or is this issue 0.10.0 only?
I got the same error with 0.8.15 on Windows Server 2008.
On Sat, Mar 16, 2013 at 12:28 PM, Mike McNeil notifications@github.comwrote:
Thanks for reporting this @krzysztofantczak-- I've seen some issues on Solaris with node-gyp.
Can you replicate on node 0.8.22, or is this issue 0.10.0 only?
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15010695 .
@syntologica-1 64 bit as well?
And sorry guys, one more question: are you doing a global install?
I have not tried a global install.
WS2008 R2 Datacenter 64 bit (EC2)
On Sat, Mar 16, 2013 at 2:32 PM, Mike McNeil notifications@github.comwrote:
And sorry guys, one more question: are you doing a global install?
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15012641 .
This seems like a permission issue-
On Sat, Mar 16, 2013 at 4:55 PM, syntologica-1 notifications@github.comwrote:
I have not tried a global install.
WS2008 R2 Datacenter 64 bit (EC2)
On Sat, Mar 16, 2013 at 2:32 PM, Mike McNeil notifications@github.comwrote:
And sorry guys, one more question: are you doing a global install?
— Reply to this email directly or view it on GitHub< https://github.com/balderdashy/sails/issues/235#issuecomment-15012641> .
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15012922 .
Mike McNeil Founder http://www.linkedin.com/in/mikermcneil/ http://twitter.com/mikermcneil http://github.com/balderdashy
C O
NFI DEN
TIA L i
nfo rma
tion in
tended
only for t he addressee(s).
If you are not the intended recipient, empl oyee or agent responsible for delivery to the intended recipient(s), please be aware that any review, dissemination, use,distribut ion or copying of this message and its contents is strictly prohibited. If you receive this email in error, ple ase notify the sender and destroy any paper or electronic copies immediately.
I've installed many other packages without problems. Happy to try suggestions.
On Sat, Mar 16, 2013 at 2:57 PM, Mike McNeil notifications@github.comwrote:
This seems like a permission issue-
On Sat, Mar 16, 2013 at 4:55 PM, syntologica-1 notifications@github.comwrote:
I have not tried a global install.
WS2008 R2 Datacenter 64 bit (EC2)
On Sat, Mar 16, 2013 at 2:32 PM, Mike McNeil notifications@github.comwrote:
And sorry guys, one more question: are you doing a global install?
— Reply to this email directly or view it on GitHub< https://github.com/balderdashy/sails/issues/235#issuecomment-15012641> .
— Reply to this email directly or view it on GitHub< https://github.com/balderdashy/sails/issues/235#issuecomment-15012922> .
Mike McNeil Founder http://www.linkedin.com/in/mikermcneil/ http://twitter.com/mikermcneil
C O NFI DEN TIA L i nfo rma tion in tended only for t he addressee(s). If you are not the intended recipient, empl oyee or agent responsible for delivery to the intended recipient(s), please be aware that any review, dissemination, use,distribut ion or copying of this message and its contents is strictly prohibited. If you receive this email in error, ple ase notify the sender and destroy any paper or electronic copies immediately.
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15012952 .
Seems like it's having trouble compiling socket.io client: http://stackoverflow.com/questions/14296094/get-socket-io-to-work-on-windows-7-x64-bit-platform
I'll keep poking around
Installation of socket.io package on Windows 7 x64 bit environment seems to demand:
Cygwin C++ compiler Cygin C++ extra-library Microsoft Visual Studio 2010 Express Microsoft .NET Framework v2.0 Microsoft Performance Toolkit Microsoft Windows SDK 7.1 Microsoft Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1.
Although it seems like cygwin + g++ should work?
Ya those are runtime errors - I already fixed the stdint.h compilation error by installing .NET 3.5.
On Sat, Mar 16, 2013 at 3:03 PM, Mike McNeil notifications@github.comwrote:
Seems like it's having trouble compiling socket.io client:
http://stackoverflow.com/questions/14296094/get-socket-io-to-work-on-windows-7-x64-bit-platform
I'll keep poking around
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15013037 .
Unfortunately a bit out of my area of expertise: any .NET users had this issue with node-gyp?
from https://github.com/TooTallNate/node-gyp:
On Windows:
Python (v2.7.3 recommended, v3.x.x is not supported)
Windows XP/Vista/7:
Microsoft Visual Studio C++ 2010 (Express version works well)
For 64-bit builds of node and native modules you will also need the Windows 7 64-bit SDK
If the install fails, try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first.
If you get errors that the 64-bit compilers are not installed you may also need the compiler update for the Windows SDK 7.1
Windows 8:
Microsoft Visual Studio C++ 2012 for Windows Desktop (Express version works well)
I'm happy to bundle whatever I need to with socket.io client to make this work. Have you been able to install socket.io with npm -g install socket.io
?
Should have tried that already - I get the same error with socket.io
Don't blame you, not necessarily intuitive that's what's happening :\ Want me to make an issue?
I went back to https://github.com/TooTallNate/node-gyp#installation and did all but the Windows 7 64 bit SDK as it did not seem applicable.
That got past my original problem, and up to the MSB4019 error listed in https://github.com/LearnBoost/socket.io/issues/1151 and https://github.com/TooTallNate/node-gyp/issues/213 - so I am trying the SDK now.
Will keep you posted.
On Sat, Mar 16, 2013 at 5:09 PM, Mike McNeil notifications@github.comwrote:
Don't blame you, not necessarily intuitive that's what's happening :\ Want me to make an issue?
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15014603 .
After installing the SDK (minimal set of components excluding Studio includes) I was able to install socket.io with only warnings as shown immediately below. Further down is the log for sails - also only warnings. However when I try "sails new testProject" I get an error message that sails is undefined.
c:\Dropbox\node>npm install socket.io npm WARN package.json jquery@1.6.3 No README.md file found! npm http GET https://registry.npmjs.org/socket.io npm http 304 https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/socket.io-client/0.9.11 npm http GET https://registry.npmjs.org/policyfile/0.0.4 npm http GET https://registry.npmjs.org/base64id/0.1.0 npm http GET https://registry.npmjs.org/redis/0.7.3 npm http 304 https://registry.npmjs.org/socket.io-client/0.9.11 npm http 304 https://registry.npmjs.org/policyfile/0.0.4 npm http 304 https://registry.npmjs.org/base64id/0.1.0 npm http 304 https://registry.npmjs.org/redis/0.7.3 npm http GET https://registry.npmjs.org/uglify-js/1.2.5 npm http GET https://registry.npmjs.org/ws npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2 npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http 304 https://registry.npmjs.org/ws npm http 304 https://registry.npmjs.org/uglify-js/1.2.5 npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2 npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http GET https://registry.npmjs.org/zeparser/0.0.5 npm http GET https://registry.npmjs.org/tinycolor npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/zeparser/0.0.5 npm http 304 https://registry.npmjs.org/tinycolor
ws@0.4.25 install c:\Dropbox\node\node_modules\socket.io\node_modules\socket.i o-client\node_modules\ws (node-gyp rebuild 2> builderror.log) || (exit 0)
c:\Dropbox\node\node_modules\socket.io\node_modules\socket.io-client\node_module
s\ws>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node
_modules\node-gyp\bin\node-gyp.js" rebuild
bufferutil.cc
..\src\bufferutil.cc(55): warning C4267: 'initializing' : conversion from 'size
_t' to 'unsigned int', possible loss of data [c:\Dropbox\node\node_modules\sock
et.io\node_modules\socket.io-client\node_modules\ws\build\bufferutil.vcxproj]
..\src\bufferutil.cc(66): warning C4267: 'initializing' : conversion from 'size
_t' to 'unsigned int', possible loss of data [c:\Dropbox\node\node_modules\sock
et.io\node_modules\socket.io-client\node_modules\ws\build\bufferutil.vcxproj]
C:\Users\admin1.node-gyp\0.10.0\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent
For the npm install sails I got the above warnings followed by:
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/eventemitter2
npm http 304 https://registry.npmjs.org/utile
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/filed/0.0.7
npm http 304 https://registry.npmjs.org/morestreams
npm http 304 https://registry.npmjs.org/xml2js
npm http 304 https://registry.npmjs.org/errs
npm WARN package.json morestreams@0.1.1 No README.md file found!
npm http GET https://registry.npmjs.org/deep-equal
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/i
npm http GET https://registry.npmjs.org/ncp
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/sax
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/tunnel-agent
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/aws-sign
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/deep-equal
npm http 304 https://registry.npmjs.org/ncp
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/i
validation.cc
npm http 304 https://registry.npmjs.org/sax
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/tunnel-agent
npm WARN package.json tunnel-agent@0.2.0 No README.md file found!
npm WARN package.json oauth-sign@0.2.0 No README.md file found!
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/hawk
npm WARN package.json forever-agent@0.2.0 No README.md file found!
npm WARN package.json cookie-jar@0.2.0 No README.md file found!
npm WARN package.json aws-sign@0.2.0 No README.md file found!
npm http GET https://registry.npmjs.org/nopt
C:\Users\admin1.node-gyp\0.10.0\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent
Seems like sails never made it into your path. Did you do npm install -g sails
?
If you've already done that, you might try running sails directly from your global node_modules directory- on os x, by default that's in /usr/local/lib/node_modules/
Not sure about windows off hand
Tried both, no luck.
There is nothing that would run on Windows command line as "sails" in either case.
On Sat, Mar 16, 2013 at 10:22 PM, Mike McNeil notifications@github.comwrote:
Seems like sails never made it into your path. Did you do npm install -g sails?
If you've already done that, you might try running sails directly from your global node_modules directory- on os x, by default that's in /usr/local/lib/node_modules/
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15017690 .
does it launch from the app folder with "node .app.js" ?
@dcbartlett He's unable to make a new project so he hasn't gotten that far yet
@syntologica-1 Are you able to do a global install of any other modules, like Express for instance?
well thats true... i'm used to my method of cloning my clean project.
Oh yeah, maybe try that for the immediate term? @dcbartlett got a repo?
Yes:
c:\Dropbox\node>npm install -g express npm http GET https://registry.npmjs.org/express npm http 304 https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/connect/2.7.2 npm http GET https://registry.npmjs.org/commander/0.6.1 npm http GET https://registry.npmjs.org/range-parser/0.0.4 npm http GET https://registry.npmjs.org/buffer-crc32/0.1.1 npm http GET https://registry.npmjs.org/methods/0.0.1 npm http GET https://registry.npmjs.org/mkdirp/0.3.3 npm http GET https://registry.npmjs.org/send/0.1.0 npm http GET https://registry.npmjs.org/fresh/0.1.0 npm http GET https://registry.npmjs.org/cookie-signature/0.0.1 npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/cookie/0.0.5 npm http 304 https://registry.npmjs.org/commander/0.6.1 npm http 304 https://registry.npmjs.org/range-parser/0.0.4 npm http 304 https://registry.npmjs.org/connect/2.7.2 npm http 304 https://registry.npmjs.org/methods/0.0.1 npm WARN package.json methods@0.0.1 No README.md file found! npm http 304 https://registry.npmjs.org/send/0.1.0 npm http 304 https://registry.npmjs.org/mkdirp/0.3.3 npm http 304 https://registry.npmjs.org/fresh/0.1.0 npm http 304 https://registry.npmjs.org/buffer-crc32/0.1.1 npm http 304 https://registry.npmjs.org/cookie-signature/0.0.1 npm http 304 https://registry.npmjs.org/debug npm http 304 https://registry.npmjs.org/cookie/0.0.5 npm http GET https://registry.npmjs.org/mime/1.2.6 npm http 304 https://registry.npmjs.org/mime/1.2.6 npm http GET https://registry.npmjs.org/qs/0.5.1 npm http GET https://registry.npmjs.org/formidable/1.0.11 npm http GET https://registry.npmjs.org/bytes/0.1.0 npm http GET https://registry.npmjs.org/pause/0.0.1 npm http 304 https://registry.npmjs.org/qs/0.5.1 npm http 304 https://registry.npmjs.org/formidable/1.0.11 npm http 304 https://registry.npmjs.org/pause/0.0.1 npm http 304 https://registry.npmjs.org/bytes/0.1.0 C:\Users\admin1\AppData\Roaming\npm\express -> C:\Users\admin1\AppData\Roaming\n pm\node_modules\express\bin\express express@3.1.0 C:\Users\admin1\AppData\Roaming\npm\node_modules\express ├── methods@0.0.1 ├── fresh@0.1.0 ├── cookie@0.0.5 ├── buffer-crc32@0.1.1 ├── range-parser@0.0.4 ├── debug@0.7.2 ├── cookie-signature@0.0.1 ├── commander@0.6.1 ├── mkdirp@0.3.3 ├── send@0.1.0 (mime@1.2.6) └── connect@2.7.2 (pause@0.0.1, bytes@0.1.0, qs@0.5.1, formidable@1.0.11)
On Sat, Mar 16, 2013 at 11:25 PM, Mike McNeil notifications@github.comwrote:
@dcbartlett https://github.com/dcbartlett He's unable to make a new project so he hasn't gotten that far yet
@syntologica-1 https://github.com/syntologica-1 Are you able to do a global install of any other modules, like Express for instance?
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15018208 .
@syntologica-1 Are you able to use Express from the command line? e.g. express newAppName
Nope
On Sun, Mar 17, 2013 at 5:05 PM, Mike McNeil notifications@github.comwrote:
@syntologica-1 https://github.com/syntologica-1 Are you able to use Express from the command line? e.g. express newAppName
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15034149 .
Repo is at https://github.com/dcbartlett/sails-empty
i don't think that my repo will help much though, if you don't have a usable path you probably won't be able to do node .app.js either. It seems to me that none of the installed apps are finding their way into your path.
What additional path segment(s) should I see from installing sails?
Thanks
John
On Wed, Mar 20, 2013 at 6:52 PM, Dennis Bartlett notifications@github.comwrote:
i don't think that my repo will help much though, if you don't have a usable path you probably won't be able to do node .app.js either. It seems to me that none of the installed apps are finding their way into your path.
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15215260 .
I got sails working properly by starting over with node 0.8.15.
BTW is there a doc page that describes e.g. how to update a model or even how to specify initial parameters? I did not see it in the wiki.
Thanks
John
On Sun, Mar 17, 2013 at 5:05 PM, Mike McNeil notifications@github.comwrote:
@syntologica-1 https://github.com/syntologica-1 Are you able to use Express from the command line? e.g. express newAppName
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15034149 .
@syntologica-1 Glad it's up! :+1:
Here's the relevant section on updating models from the wiki-- this sort of code might go in your controller:
https://github.com/balderdashy/sails/wiki/Models
update
update() allows you to update an instance of a model from the database.
// For example, to update a user's name,
// .update(query, params to change, callback)
User.update({
name: 'sally'
},{
phone: '555-555-5555'
}, function(err, user) {
// Error handling
if (err) {
return console.log(err);
// Updated user successfully!
} else {
console.log("User updated:", user);
}
});
Alternatively, if you do:
sails generate modelName
An empty model and controller will be created. Then, doing:
# Update the user with id 1
http://localhost:1337/user/update/1
(or send an HTTP PUT to http://localhost:1337/user/1)
with RESTful conventions will allow you to update the modelName without writing any code.
Hope that helps! Dunno if you're in this camp or not, but either way, we're working to do a better job introducing these concepts for folks new to MVC and REST-- for now, there are more resources on REST here (http://backbonejs.org/#Sync) and MVC here (http://en.wikipedia.org/wiki/Grails_(framework))
Closing for now!
@dcbartlett Would you take a sanity pass through the docs and make sure our examples for update are sufficient?
I may have some basic misconceptions about how sails is supposed to work. When you generate a model, is there a way to specify its attributes at the same time? For example, if I say sails generate user, can I include command line parameters to indicate that each user has a name, address, etc.? And can PUT and POST operations carry parameters in the body e.g. JSON or only as ?name=xxx style?
On Sat, Mar 30, 2013 at 2:37 PM, Mike McNeil notifications@github.comwrote:
Closing for now!
@dcbartlett https://github.com/dcbartlett Would you take a sanity pass through the docs and make sure our examples for update are sufficient?
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15682363 .
Would you mind sending this to the google group? I'm out at the moment but ill follow up with an answer re creating models with attributes. You can also modify the model files themselves in api/models
Re params- yep, JSON and query params both work :)
Mike's phone
On Mar 30, 2013, at 18:52, syntologica-1 notifications@github.com wrote:
I may have some basic misconceptions about how sails is supposed to work. When you generate a model, is there a way to specify its attributes at the same time? For example, if I say sails generate user, can I include command line parameters to indicate that each user has a name, address, etc.? And can PUT and POST operations carry parameters in the body e.g. JSON or only as ?name=xxx style?
On Sat, Mar 30, 2013 at 2:37 PM, Mike McNeil notifications@github.comwrote:
Closing for now!
@dcbartlett https://github.com/dcbartlett Would you take a sanity pass through the docs and make sure our examples for update are sufficient?
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15682363 .
— Reply to this email directly or view it on GitHub.
OK will do, thanks.
On Sat, Mar 30, 2013 at 6:13 PM, Mike McNeil notifications@github.comwrote:
Would you mind sending this to the google group? I'm out at the moment but ill follow up with an answer re creating models with attributes. You can also modify the model files themselves in api/models
Re params- yep, JSON and query params both work :)
Mike's phone
On Mar 30, 2013, at 18:52, syntologica-1 notifications@github.com wrote:
I may have some basic misconceptions about how sails is supposed to work. When you generate a model, is there a way to specify its attributes at the same time? For example, if I say sails generate user, can I include command line parameters to indicate that each user has a name, address, etc.? And can PUT and POST operations carry parameters in the body e.g. JSON or only as ?name=xxx style?
On Sat, Mar 30, 2013 at 2:37 PM, Mike McNeil notifications@github.comwrote:
Closing for now!
@dcbartlett https://github.com/dcbartlett Would you take a sanity pass through the docs and make sure our examples for update are sufficient?
— Reply to this email directly or view it on GitHub< https://github.com/balderdashy/sails/issues/235#issuecomment-15682363> .
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/235#issuecomment-15684909 .
I reported this to npm but suspect it may be specific to sails, as I have installed many other packages without problems.
18838 silly exec cmd "/c" "(node-gyp rebuild 2> builderror.log) || (exit 0)" 18839 silly cmd,/c,(node-gyp rebuild 2> builderror.log) || (exit 0),c:\Dropbox\node\node_modules\sails\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws spawning 18840 error Error: spawn ENOENT 18840 error at errnoException (child_process.js:945:11) 18840 error at Process.ChildProcess._handle.onexit (child_process.js:736:34) 18841 error If you need help, you may report this log at: 18841 error http://github.com/isaacs/npm/issues 18841 error or email it to: 18841 error npm-@googlegroups.com 18842 error System Windows_NT 6.1.7600 18843 error command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "sails" 18844 error cwd c:\Dropbox\node 18845 error node -v v0.10.0 18846 error npm -v 1.2.14 18847 error syscall spawn 18848 error code ENOENT 18849 error errno ENOENT 18850 verbose exit [ 1, true ]