After I try the npx create-ol-app my-app - -template vite .. it shows error ... could not find commit hash for HEAD
@dinamagdy3195 ай бұрын
Many thanks, It's wonderful, The best video ever to embed map to website completely, It's the best for beginners. Please help me to make the marker and popup with fully and simplist way. 😢
@arnoldkilaini5 ай бұрын
You are welcome, please subscribe and share the video. I will consider doing that
@verataileh85344 ай бұрын
After I try the npx create-ol-app my-app - -template vite .. it shows error .. why does it happen? Can u explain? Thnkss
@arnoldkilaini4 ай бұрын
The npx command, tries to install in your my-app folder (Make sure you have created a folder with folder name my-app)
@verataileh85344 ай бұрын
@@arnoldkilaini u mean, I must create an empty folder with “my-app” name in my computer (any directory) before using the npx command?
@arnoldkilaini4 ай бұрын
@@verataileh8534well, it can be any name but for this example I created my-app where thr npx openlayers(ol) command is installed.
@verataileh85344 ай бұрын
@@arnoldkilainiI created mine, (openlayers folder) and installed the open layer .. “npm install ol” . Then I tried the “npx create-ol-app openlayers - - template vite” .. it shows “could not find comit hash for HEAD”
@arnoldkilaini4 ай бұрын
@@verataileh8534 are you using visual studio code as IDE? then install git as extension and try! Make sure you have good internet connection. Or install github in your pc, (try that)
@muhmmmadsulaiman9463 ай бұрын
npm error code ENOENT npm error syscall lstat npm error path C:\Users\Muhammad Sulaiman\AppData\Roaming pm npm error errno -4058 npm error enoent ENOENT: no such file or directory, lstat 'C:\Users\Muhammad Sulaiman\AppData\Roaming pm' npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: C:\Users\Muhammad Sulaiman\AppData\Local pm-cache\_logs\2024-08-05T08_57_14_468Z-debug-0.log it show me this error I also create a folder name my-app
@arnoldkilaini3 ай бұрын
@muhmmmadsulaiman946 hello, have you installed correctly the Node JS and which version are l are you using It should be more than version 14?
@muhmmmadsulaiman9463 ай бұрын
@@arnoldkilaini i have version 20 .16
@muhmmmadsulaiman9463 ай бұрын
@@arnoldkilaini 🚨 Build failed. @parcel/transformer-js: Browser scripts cannot have imports or exports. D:\pha_land_web_mapping\scripts\map.js:1:1 > 1 | import 'ol/ol.css'; > | ^^^^^^^^^^^^^^^^^^^ 2 | import { Map, View } from 'ol/'; 3 | import TileLayer from 'ol/layer/Tile'; D:\pha_land_web_mapping\index.html:12:5 11 | > 12 | > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The environment was originally created here 13 | 14 | how to solve this issue ?sir
@63_shekharuike404 ай бұрын
It show me error
@arnoldkilaini4 ай бұрын
@@63_shekharuike40 where and which message error? Have you followed the video in detailed steps?