Code Monkey home page Code Monkey logo

Comments (7)

theonicolaou avatar theonicolaou commented on May 20, 2024 1

Thanks @ain, installing Bundler did the trick. I think it would be helpful if this instruction (and how to lint the SCSS file) was included in the CONTRIBUTING.MD file. I have set up another PR for this (#48)

from smartbanner.js.

theonicolaou avatar theonicolaou commented on May 20, 2024 1

Great - that did work and I was able to install the deps and run the build. Thanks 👍

from smartbanner.js.

ain avatar ain commented on May 20, 2024

@theonicolaou yes, smartbanner.js requires Bundler for SCSS linting.

Please install and rerun.

from smartbanner.js.

theonicolaou avatar theonicolaou commented on May 20, 2024

On a similar note, when trying to run: "npm run build" I get a similar error:

[email protected] build /Users/theonicolaou/Documents/websites/smartbannerjs/smartbanner.js
npm run build:js && npm run build:css && npm run autoprefix && npm run build:css-min && npm run bannerise

[email protected] build:js /Users/theonicolaou/Documents/websites/smartbannerjs/smartbanner.js
npm run browserify && npm run uglify

[email protected] browserify /Users/theonicolaou/Documents/websites/smartbannerjs/smartbanner.js
browserify src/index.js -o dist/smartbanner.js -t [ babelify --presets [ es2015 ] ]

sh: browserify: command not found

npm ERR! Darwin 16.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "browserify"
npm ERR! node v0.10.33
npm ERR! npm v2.1.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] browserify: browserify src/index.js -o dist/smartbanner.js -t [ babelify --presets [ es2015 ] ]
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] browserify script 'browserify src/index.js -o dist/smartbanner.js -t [ babelify --presets [ es2015 ] ]'.
npm ERR! This is most likely a problem with the smartbanner.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! browserify src/index.js -o dist/smartbanner.js -t [ babelify --presets [ es2015 ] ]
npm ERR! You can get their info via:
npm ERR! npm owner ls smartbanner.js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/theonicolaou/Documents/websites/smartbannerjs/smartbanner.js/npm-debug.log

npm ERR! Darwin 16.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "build:js"
npm ERR! node v0.10.33
npm ERR! npm v2.1.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build:js: npm run browserify && npm run uglify
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:js script 'npm run browserify && npm run uglify'.
npm ERR! This is most likely a problem with the smartbanner.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run browserify && npm run uglify
npm ERR! You can get their info via:
npm ERR! npm owner ls smartbanner.js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/theonicolaou/Documents/websites/smartbannerjs/smartbanner.js/npm-debug.log

npm ERR! Darwin 16.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v0.10.33
npm ERR! npm v2.1.12
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: npm run build:js && npm run build:css && npm run autoprefix && npm run build:css-min && npm run bannerise
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'npm run build:js && npm run build:css && npm run autoprefix && npm run build:css-min && npm run bannerise'.
npm ERR! This is most likely a problem with the smartbanner.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build:js && npm run build:css && npm run autoprefix && npm run build:css-min && npm run bannerise
npm ERR! You can get their info via:
npm ERR! npm owner ls smartbanner.js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/theonicolaou/Documents/websites/smartbannerjs/smartbanner.js/npm-debug.log

Is there anything else that I need to have installed?

from smartbanner.js.

ain avatar ain commented on May 20, 2024

@theonicolaou you're running a rather old Node.js of v0.10.33, but minimum is slightly higher, see https://github.com/ain/smartbanner.js/blob/master/package.json#L29

from smartbanner.js.

theonicolaou avatar theonicolaou commented on May 20, 2024

Hi @ain I updated to the latest stable version of Node (7.10.0) but still get the following error when I run "npm run build":

[email protected] build /Users/theonicolaou/Documents/websites/smartbannerjs/smartbanner.js
npm run build:js && npm run build:css && npm run autoprefix && npm run build:css-min && npm run bannerise

[email protected] build:js /Users/theonicolaou/Documents/websites/smartbannerjs/smartbanner.js
npm run browserify && npm run uglify

[email protected] browserify /Users/theonicolaou/Documents/websites/smartbannerjs/smartbanner.js
browserify src/index.js -o dist/smartbanner.js -t [ babelify --presets [ es2015 ] ]

sh: browserify: command not found

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "browserify"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] browserify: browserify src/index.js -o dist/smartbanner.js -t [ babelify --presets [ es2015 ] ]
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] browserify script 'browserify src/index.js -o dist/smartbanner.js -t [ babelify --presets [ es2015 ] ]'.
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 smartbanner.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! browserify src/index.js -o dist/smartbanner.js -t [ babelify --presets [ es2015 ] ]
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs smartbanner.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls smartbanner.js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/theonicolaou/.npm/_logs/2017-05-31T18_30_43_945Z-debug.log

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build:js"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:js: npm run browserify && npm run uglify
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:js script 'npm run browserify && npm run uglify'.
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 smartbanner.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run browserify && npm run uglify
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs smartbanner.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls smartbanner.js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/theonicolaou/.npm/_logs/2017-05-31T18_30_43_969Z-debug.log

npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: npm run build:js && npm run build:css && npm run autoprefix && npm run build:css-min && npm run bannerise
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'npm run build:js && npm run build:css && npm run autoprefix && npm run build:css-min && npm run bannerise'.
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 smartbanner.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build:js && npm run build:css && npm run autoprefix && npm run build:css-min && npm run bannerise
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs smartbanner.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls smartbanner.js
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/theonicolaou/.npm/_logs/2017-05-31T18_30_43_994Z-debug.log

from smartbanner.js.

ain avatar ain commented on May 20, 2024

I have just tested npm run build on Node.js v7.10.0 and it runs through nicely. Must be local problem.

Try complete reset of dependencies:

rm -rf node_modules && npm i

from smartbanner.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.