0

In Lockdown.js for NPM I get an empty file when i run the command to generated the lockdown file here is the links for the dependency

NPM lockdown git

and next my package.json

            {
          "name": "nw",
          "private": true,
          "devDependencies": {
            "grunt": "^0.4.5",
            "grunt-angular-templates": "^0.5.7",
            "grunt-autoprefixer": "^2.0.0",
            "grunt-concurrent": "^1.0.0",
            "grunt-contrib-clean": "^0.6.0",
            "grunt-contrib-concat": "^0.5.0",
            "grunt-contrib-connect": "^0.9.0",
            "grunt-contrib-copy": "^0.7.0",
            "grunt-contrib-cssmin": "^0.12.0",
            "grunt-contrib-htmlmin": "^0.4.0",
            "grunt-contrib-imagemin": "^1.0.0",
            "grunt-contrib-jshint": "^0.11.0",
            "grunt-contrib-uglify": "^0.7.0",
            "grunt-contrib-watch": "^0.6.1",
            "grunt-filerev": "^2.1.2",
            "grunt-google-cdn": "^0.4.3",
            "grunt-karma": "*",
            "grunt-newer": "^1.1.0",
            "grunt-ng-annotate": "^0.9.2",
            "grunt-svgmin": "^2.0.0",
            "grunt-usemin": "^3.0.0",
            "grunt-wiredep": "^2.0.0",
            "gulp": "^3.9.0",
            "jit-grunt": "^0.9.1",
            "jshint-stylish": "^1.0.0",
            "karma-coverage": "^0.5.3",
            "karma-jasmine": "^0.3.6",
            "karma-phantomjs-launcher": "^0.2.1",
            "phantomjs": "^1.9.18",
            "protractor-jasmine2-screenshot-reporter": "^0.2.0",
            "time-grunt": "^1.0.0",
            "vinyl-fs": "2.2.1"
          },
          "engines": {
            "node": ">=0.10.0"
          },
          "scripts": {
            "preinstall": "lockdown",
            "test": "grunt test",
            "install": "node node_modules/protractor/bin/webdriver-manager update"
          },
          "dependencies": {
            "bower": "^1.7.2",
            "karma": "^0.13.19",
            "karma-jasmine-jquery": "^0.1.1",
            "lockdown": "0.0.8-dev",
            "protractor": "^3.0.0",
            "request": "^2.67.0"
          }
        }

and also the error I get when I run the command

node_modules/.bin/lockdown-relock

I get this error `> nw@ preinstall C:\Users\cvega\Desktop\Cesar Settings\SampleProjects\NWGit\nw

lockdown

NPM Lockdown is here to check your dependencies! Never fear!

ERROR: I cannot read lockdown.json! run node_modules/.bin/lockdown-relock to generate!`

Cesar Vega
  • 455
  • 6
  • 15

1 Answers1

0

I never got it to work but I use npm shrinkwrap

and its working the only issue I had was that i had to delete all dependencies that did not match my package.json file and I found them using npm ls which will list the of packages install in your node modules

Cesar Vega
  • 455
  • 6
  • 15