-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersonalNotes.txt
More file actions
26 lines (18 loc) · 1000 Bytes
/
personalNotes.txt
File metadata and controls
26 lines (18 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- About linking --
These are the steps to successfully link the node_modules...
Step 1, have a project that has the node modules installed. This can be done by
npm create vite@latest ProjectName -- --template react
cd ProjectName
npm install #install the node modules
npm run dev #runs the website in developer mode, not necessary but a test to make sure everyting ok
npm init # initiates the package.json file that is necessary for the link, don't worry to much about the questions it asks
Step 2, create a new project that will link to the old
npm create vite@latest NewProjectName --template react
cd NewProjectName
Step 3, finally link and install vite manually
npx link ProjectName/node_modules #npx link is a more robust version of npm link
npm install --save-dev vite
npm run dev #if this runs and the website looks good then its accomplished!
-- making Json file accessible to local server --
npx json-server --port 3001 --watch db.json
json-server --port 3001 --watch db.json