-1

I am following this truffle pet-shop tutorial

When i try npm run dev i get the following error message:

> pet-shop@1.0.0 dev
> ../../../Desktop/BlockchainTechnology/pet-shop-tutorial/node_modules/.bin/lite-server

'..' is not recognized as an internal or external command,
operable program or batch file.

The folder is not located in Desktop.
I have already tried npm install lite-server@2.3 --save-dev
I downloaded the project from a friends git, the .gitignore only includes node_modules/

TylerH
  • 20,799
  • 66
  • 75
  • 101
Jesper Hustad
  • 172
  • 2
  • 5

1 Answers1

0

I found the issue.

The package.json files run script had stored the local path from my friends computer.

So i changes from:.

run : '../../Desktop/project/node_modules/lite_server'

to

run : 'lite_server'
Jesper Hustad
  • 172
  • 2
  • 5