Comments (7)
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.
Great - that did work and I was able to install the deps and run the build. Thanks 👍
from smartbanner.js.
@theonicolaou yes, smartbanner.js
requires Bundler for SCSS linting.
Please install and rerun.
from smartbanner.js.
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.
@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.
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.
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)
- Hide smart app banner in web app HOT 4
- Smartbanner for Huawei without Play Store HOT 1
- Smart Banner ios version displayed for touch screen enabled desktops HOT 1
- Angular 2+ compatibility HOT 1
- How to hide smartapp banner in webview apps HOT 1
- Why app banner is displaying in laptop screens, 1440 X 734 / 1366 X 768? HOT 8
- Is there a way to add two smart banners? HOT 1
- support for another language in content ? HOT 3
- min file no correctly exported? HOT 2
- Does it work in Angular? For me it is not showing HOT 1
- Unexpected token ')' when close banner HOT 1
- Invisible App Icon HOT 3
- Will view button be changed to open button if app is already installed in mobile(android or iOS ? HOT 1
- Windows Convertibles are recognized as iOS devices HOT 5
- Accessibility concern with tabbing to banner HOT 5
- smartbanner is visible on windows tab when enabled-platforms is set to android,ios HOT 3
- Error library when I use install with npm HOT 14
- Required content HOT 6
- Js and CSS files are throwing error HOT 5
- Value for enabled-platforms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartbanner.js.