Skip to content

Commit

Permalink
npx installation and reinstall nodemon
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanupam1001 committed Aug 20, 2023
1 parent c3b82f8 commit e694d17
Show file tree
Hide file tree
Showing 4 changed files with 358 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ const _ = require('lodash')
const items = [1, [2, [3, [4, 5], 6]]]
const newItems = _.flattenDeep(items) // to get a single array from the nested array
console.log(newItems)
console.log('hello world')
console.log('hello world!')
8 changes: 7 additions & 1 deletion npm-info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ npm init -y (everything default)

How to uninstall a package
1) npm uninstall packageName
2) delete node_modules and package-lock.json and the dependency from package.json and then run 'npm install' to reinstall other dependencies
2) delete node_modules and package-lock.json and the dependency from package.json and then run 'npm install' to reinstall other dependencies



npx enables us to use local dependencies as global
npm install -g npx
to run the app as global: npx packageName app.js
349 changes: 348 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"lodash": "^4.17.21"
"lodash": "^4.17.21",
"nodemon": "^3.0.1"
}
}

0 comments on commit e694d17

Please sign in to comment.