I'm following a VUE tutorial on a mac (shown in youtube).
In my src/app.js
I have only console.log('hi');
The start command for the Mac in package.json
as shown on the youtube video is:
"scripts": {
"start": "./node_modules/nodemon/bin/nodemon.js src/app.js --exec 'npm run lint && node'",
"lint": "./node_modules/.bin/eslint **/*.js"
},
In which case the nodemon was not found.
So I changed the forward slashes to backslashes thus:
"scripts": {
"start": ".\\node_modules\\nodemon\\bin\\nodemon.js src\\app.js --exec 'npm run lint && node'",
"lint": ".\\node_modules\\.bin\\eslint **\\*.js"
},
but now when I run npm start
I get an alert with error in nodemon.js
line 1
charachter 1
invalid character
800A03F6
I tried with a forward slash in the src/app.js and got the same error. Is it something to do with the single quotemark?
The tutorial is here: (start command seen at 21:43) here: https://www.youtube.com/watch?v=Fa4cRMaTDUI&t=21m43s