iampeter / backbone-marionette-gulp-seed

A seed project using Backbone.js, Marionette.js, Twitter Bootstrap 3, Stylus, Jade and Coffeescript all bundled with Gulp.js
34 stars 12 forks source link

npm install errors #2

Open sidjain opened 8 years ago

sidjain commented 8 years ago

I just cloned your repository, ran npm install (using npm version 2.10.1) , and get this output:

npm install

npm WARN package.json backbone-marionette-gulp-seed@1.1.0 No license field. npm WARN deprecated gulp-minify-css@0.3.13: Please use gulp-cssnano instead. npm WARN deprecated gulp-browserify@0.4.6: package is no longer maintained npm WARN deprecated lodash@1.0.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0 npm WARN deprecated native-buffer-browserify@2.0.17: Use the "buffer" module (https://www.npmjs.com/package/buffer) instead npm ERR! Linux 4.1.5-x86_64-linode61 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/esprima-six npm ERR! 404 npm ERR! 404 'esprima-six' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 It was specified as a dependency of 'syntax-error' npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request: npm ERR! /var/www/dockvine/backbone-marionette-gulp-seed/npm-debug.log

sidjain commented 8 years ago

I got it to work, but I'm using a forked version of your repo with some additional modifications. Here's what I had to do:

  1. Try using this package.json file:

{ "name": "settings", "version": "1.0.0", "description": "This is a sample Todos seed application using Backbone.js, Marionette.js, Twitter Bootstrap 3, Stylus, Jade and Coffeescript all bundled with Gulp.js", "main": "gulpfile.js", "devDependencies": { "browserify": "^13.0.0", "del": "^2.2.0", "fs": "0.0.2", "gulp": "^3.9.0", "gulp-browserify": "^0.5.1", "gulp-coffee": "^2.3.1", "gulp-concat": "^2.6.0", "gulp-cssnano": "^2.1.0", "gulp-htmltidy": "^0.2.2", "gulp-jade": "^1.1.0", "gulp-livereload": "^3.8.1", "gulp-plumber": "^1.0.1", "gulp-preprocess": "^2.0.0", "gulp-replace-task": "^0.11.0", "gulp-stylus": "^2.2.0", "gulp-uglify": "^1.5.1", "jade": "^1.11.0", "jadeify": "^4.6.0", "nib": "^1.1.0" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC" }

  1. add this to the gulpfile:

var nib = require('nib');

  1. In the part of the gulpfile hwere you compile stylus, change: .pipe(stylus({ use['nib']}))

to

.pipe(stylus({ use: nib() }))

iampeter commented 8 years ago

Well the repo is quite unmaintained, and - like you noticed - some libraries changed since.

Maybe you'd like to fork and create a pull request with your fixes?