Answer the question
In order to leave comments, you need to log in
Installing and using gulp locally and other Npm packages?
Good afternoon.
There was such problem: the worker's computer is cut off from the Internet, but during the work it would be desirable to use galp and other packages. Nodejs is installed, I pulled the node_modules folder at home, after downloading the necessary packages. So, is it possible to somehow specify on the command line that he would execute npm install from the local folder, in which the packages already lie directly without accessing the network (as far as I understand, directly from the Node_modules folder)?
jason looks like this:
{
"name": "testgulp",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"browser-sync": "^2.18.13",
"gulp-autoprefixer": "^4.0.0",
"gulp": "^3.10.10",
"gulp-imagemin": "^3.4.0",
"gulp-minify-css": "^1.2.4",
"gulp-rigger": "^0.5.8",
"gulp-sass": "^3.1.0",
"gulp-scss": "^1.4.0",
"gulp-sourcemaps": "^2.6.1",
"gulp-uglify": "^3.0.0",
"imagemin-pngquant": "^5.0.1"
}
}
Answer the question
In order to leave comments, you need to log in
local-npm will solve your problem: https://www.npmjs.com/package/local-npm
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question