I just installed parcel-bundler
globally (as it's written in docs). Below You can see my package.json file and error it throws up. I've no idea how to fix it. I get error each time run npm run dev
. Any help appreciate.
"name": "parceltest",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"@babel/polyfill": "^7.12.1",
"babel": "^6.23.0",
"chokidar": "^3.5.1",
"core-js": "^3.9.1",
"fsevents": "^2.3.2",
"request": "^2.88.2",
"resolve-url": "^0.2.1",
"urix": "^0.1.0"
},
"devDependencies": {
"@babel/cli": "^7.13.0",
"@babel/core": "^7.13.8",
"@babel/preset-env": "^7.13.9"
},
"scripts": {
"dev": "parcel src/index.html",
"build": "parcel build src/index.html"
},
"keywords": [],
"author": "",
"license": "ISC"
}
đš /Users/admin/Desktop/parceltest/src/images/mountain.png: Invalid Version: undefined
at new SemVer (/usr/local/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/node_modules/semver/semver.js:314:11)
at compare (/usr/local/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/node_modules/semver/semver.js:647:10)
at lt (/usr/local/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/node_modules/semver/semver.js:688:10)
at /usr/local/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/lib/index.js:276:22
at Object.default (/usr/local/lib/node_modules/parcel-bundler/node_modules/@babel/helper-plugin-utils/lib/index.js:22:12)
at getEnvPlugins (/usr/local/lib/node_modules/parcel-bundler/src/transforms/babel/env.js:62:34)
at getEnvConfig (/usr/local/lib/node_modules/parcel-bundler/src/transforms/babel/env.js:12:25)
at async getBabelConfig (/usr/local/lib/node_modules/parcel-bundler/src/transforms/babel/config.js:32:19)
at async babelTransform (/usr/local/lib/node_modules/parcel-bundler/src/transforms/babel/transform.js:6:16)
at async JSAsset.pretransform (/usr/local/lib/node_modules/parcel-bundler/src/assets/JSAsset.js:83:5)
Aucun commentaire:
Enregistrer un commentaire