ychris
March 29, 2021, 9:52am
1
Tell us what’s happening:
Your project link(s)
solution: https://boilerplate-npm-10.nanasv.repl.co
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; itel A16 Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.93 Mobile Safari/537.36
.
Challenge: Expand Your Project with External Packages from npm
Link to the challenge:
Maybe provide your code snippet? The one in your package.json file so we can help you.
ychris
March 29, 2021, 10:05am
3
This is the URL that fails
//https://boilerplate-npm-10.nanasv.repl.co
The issue is that ones I include package-name, express: 2.14.0 in my package.json the node refuse to be install. But if it is express: 4.14.0 it quickly installed.
Yeah you provided the link to the project, but not your code, so I have no idea.
Just CopyPaste your package.json code here so we can help you.
1 Like
Wait, now i know where you misunderstood.
Add version “2.14.0” of the “moment” package to the dependencies
field of your package.json file.
You need to add dependency not changing your Express version.
ychris
March 29, 2021, 10:12am
6
{
"name": "fcc-learn-npm-package-json",
"author": "Moshahrani",
"description": "boilerplate",
"keywords": [
"freecodecamp",
"firstProject",
"coding"
],
"license": "MIT",
"version": "1.1.0",
"dependencies": {
"package-name": "version",
"express": "2.14.0"
},
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"repository": {
"type": "git",
"url": "https://idontknow/todo.git"
}
}
Hi @ychris !
You need to replace this
with the correct package name and version
1 Like
A post was split to a new topic: Questions about Node.js
system
Closed
September 29, 2021, 12:57pm
9
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.