I have encounter error message
npm ERR! code EJSONPARSE
npm ERR! file /Users/Ashly/flarum/js/package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token } in JSON at position 240 while parsing near '... "0.1.0-beta.16",
npm ERR! JSON.parse },
npm ERR! JSON.parse "scripts": {
npm ERR! JSON.parse ...'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
for this code:
package.json
{
"private": true,
"name": "@acme/flarum-hello-world",
"dependencies": {
"flarum-webpack-config": "0.1.0-beta.10",
"webpack": "^4.0.0",
"webpack-cli": "^3.0.7"
},
"dev-dependencies": {
"flarum": "0.1.0-beta.16",
},
"scripts": {
"dev": "webpack --mode development --watch",
"build": "webpack --mode production"
}
}
from https://docs.flarum.org/extend/frontend.html#transpilation-and-file-structure
and solve it by delete the "," in this line
"flarum": "0.1.0-beta.16",
Not sure if I was correct but have installed node modules under JS folder. Just want to raise this issue.