Closed alteredorange closed 8 years ago
Also, here's the log I got when I tried to run npm start --unsafe-perm
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'start',
1 verbose cli '--unsafe-perm' ]
2 info using npm@2.14.12
3 info using node@v4.2.4
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart angularfire-seed@1.0.0
6 verbose unsafe-perm in lifecycle true
7 info angularfire-seed@1.0.0 Failed to exec prestart script
8 verbose stack Error: angularfire-seed@1.0.0 prestart: `npm install`
8 verbose stack Exit status 1
8 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
8 verbose stack at emitTwo (events.js:87:13)
8 verbose stack at EventEmitter.emit (events.js:172:7)
8 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
8 verbose stack at emitTwo (events.js:87:13)
8 verbose stack at ChildProcess.emit (events.js:172:7)
8 verbose stack at maybeClose (internal/child_process.js:818:16)
8 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
9 verbose pkgid angularfire-seed@1.0.0
10 verbose cwd /opt/angularfire-seed
11 error Linux 3.13.0-71-generic
12 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "--unsafe-perm"
13 error node v4.2.4
14 error npm v2.14.12
15 error code ELIFECYCLE
16 error angularfire-seed@1.0.0 prestart: `npm install`
16 error Exit status 1
17 error Failed at the angularfire-seed@1.0.0 prestart script 'npm install'.
17 error This is most likely a problem with the angularfire-seed package,
17 error not with npm itself.
17 error Tell the author that this fails on your system:
17 error npm install
17 error You can get their info via:
17 error npm owner ls angularfire-seed
17 error There is likely additional logging output above.
18 verbose exit [ 1, true ]
The errors mean exactly what they say. You have to utilize the supported versions until the seed is upgraded to support newer releases. Keep in mind that the npm start
command is for local development, not deployment on your remote server. AngularFire-seed can be uploaded the same as static HTML and run remotely, once you have things working to your liking.
You can either install the bower dependencies locally and then upload those, or install them remotely. But the npm deps are purely for development and don't need to be uploaded to your hosting environment.
If you're looking for a full build process, you should check out generator-angularfire (also slightly behind on point releases).
Thanks for the heads up, I'm new to this :)
This seems like a great place to start, but I can't get it to work. When i do npm install, i get a ton of warnings on peerDependecies (below) and when I run npm start it also throws a warning, says it stars, but nothing is served. I'm running a digitalocean node.js droplet.
I also put the agularfire-seed file in /opt/ because I don't think it liked being in root? Is there a preferred place to put it? Thanks for any help you can give, can't wait to get this working!
NPM START ERRORS
NPM INSTALL ERRORS