#modify package.json

7 messages · Page 1 of 1 (latest)

storm carbon
#

Hi everyone

I'm a beginner I have install nodejs now I want change the package.json file

can I have some explication about what is going wrong ?

radiant wagon
#

"build" : "vite build" goes inside the "scripts" block

#
"scripts":{
"build":"vite build",
...
storm carbon
radiant wagon
#

hehe not quite.

#

put 3 backticks (the character above tab key)``

then paste your script into the chat here

and close with

``` 3 more backticks

#

heres my package.json:

{
  "name": "sandthrax",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "description": "A verlet physics simulation",
  "main": "main.js",
  "scripts": {
    "start": "vite --port 3008 --host",
    "dev": "vite --port 3008 --host",
    "build": "vite build",
    "preview": "vite preview"
  },
  "dependencies": {
    "three": "^0.175.0"
  },
  "devDependencies": {
    "vite": "^6.2.0"
  }
}