Open jabbson opened 4 years ago
Hmm, I might have to double check that one.
Express is listed in the package.json
dependencies, so that's strange it wouldn't find it.
I tried an npm install
, and then npm start
, and it worked for me, I could start my application.
Would it be possible that you have not the right package.json
content, where it would be missing express?
FYI the package.json
in the codelabs and in the github repo should look like this:
{
"name": "thumbnail_service",
"version": "0.0.1",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"@google-cloud/storage": "^4.0.0",
"body-parser": "^1.19.0",
"express": "^4.16.4",
"bluebird": "^3.5.0",
"imagemagick": "^0.1.3"
}
}
I tried an
npm install
, and thennpm start
, and it worked for me, I could start my application. Would it be possible that you have not the rightpackage.json
content, where it would be missing express?
I am pretty sure I followed the instructions step by step and didn't experiment at all, but unfortunately I already have the project down and removed. I think this issue can be closed at least until someone confirms and reproduces the issue. Thank you.
Pic-a-daily: Lab 2 Step 7: Test locally Running
npm install; npm start
command fails with the following error:npm install express
command is also required?