Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can you help me? about npm run watch can't run this project #38

Closed
cookmaster opened this issue Aug 9, 2019 · 15 comments
Closed

can you help me? about npm run watch can't run this project #38

cookmaster opened this issue Aug 9, 2019 · 15 comments

Comments

@cookmaster
Copy link

first:
npm install
then done:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! leaflet-velocity@1.4.4 watch: ./node_modules/gulp/bin/gulp.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leaflet-velocity@1.4.4 watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! D:\Nodejs\node_cache_logs\2019-08-09T07_33_17_760Z-debug.log

please call me: wellwater0327@live.cn

@danwild
Copy link
Contributor

danwild commented Aug 13, 2019

@cookmaster - what does the log say?
@86100488z - did you add a layer to the map with the leaflet layer control?

@86100488z
Copy link

@cookmaster - what does the log say?
@86100488z - did you add a layer to the map with the leaflet layer control?

Problem solved,I forgot to choose layer...

@cookmaster
Copy link
Author

Oh,i still thank you so very much.but i can't solved at now.

@cookmaster
Copy link
Author

cookmaster commented Aug 13, 2019 via email

@AmirFarhan
Copy link

Have you tried running the demo?

@cookmaster
Copy link
Author

cookmaster commented Sep 5, 2019 via email

@cookmaster
Copy link
Author

cookmaster commented Sep 5, 2019 via email

@AmirFarhan
Copy link

AmirFarhan commented Sep 5, 2019

#39 try referring to this and do tell if you still have any problems. It will be helpful if you can share your package.json too.

@cookmaster
Copy link
Author

{
"name": "leaflet-velocity",
"version": "1.4.4",
"description": "A custom layer for leaflet to visualise arbitrary velocities",
"main": "dist/leaflet-velocity.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"watch": "./node_modules/gulp/bin/gulp.js",
"gulp": "gulp"
},
"repository": {
"type": "git",
"url": "git+https://github.com/danwild/leaflet-velocity.git"
},
"keywords": [
"leaflet",
"velocity",
"ocean",
"current",
"wind",
"canvas",
"noaa",
"visualisation",
"overlay"
],
"author": "danwild@y7mail.com",
"license": "MIT",
"bugs": {
"url": "https://github.com/danwild/leaflet-velocity/issues"
},
"homepage": "https://github.com/danwild/leaflet-velocity#readme",
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.5.4",
"@babel/preset-env": "^7.5.4",
"babel-preset-es2015": "^6.9.0",
"cssnano": "^4.1.10",
"gulp": "^2.2.0",
"gulp-babel": "^8.0.0",
"gulp-concat": "^2.6.1",
"gulp-concat-css": "^3.1.0",
"gulp-postcss": "^8.0.0",
"gulp-rename": "^1.4.0",
"gulp-uglify": "^3.0.2"
}
}

@cookmaster
Copy link
Author

it's no change

@cookmaster
Copy link
Author

at least ,thank you very much.

@AmirFarhan
Copy link

It seems like you did not load jquery and leaflet as your dependencies. Do the following in your repo:
npm install jquery
npm install leaflet

@cookmaster
Copy link
Author

wow,i try it,thank you

@cookmaster
Copy link
Author

can't run,the same problem in the first

@brentfraser
Copy link
Contributor

brentfraser commented Mar 24, 2020

If you are running node js on Windows, edit the package.json file and change line 8 from:

"watch": "./node_modules/gulp/bin/gulp.js"``
to

"watch": "node ./node_modules/gulp/bin/gulp.js"

@onaci onaci locked and limited conversation to collaborators Sep 6, 2021
@danwild danwild closed this as completed Sep 6, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants