I am unable to generate dist folder in the web app built and generated using yeoman angular generator.
I am pasting the verbose of grunt build. Please check if this is helpful.
pdc1-f3t18r1:ShippingSolution administrator$ grunt --verbose build
Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-autoprefixer" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json...OK
Loading "autoprefixer.js" tasks...OK
+ autoprefixer
Registering "grunt-concurrent" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json...OK
Loading "concurrent.js" tasks...OK
+ concurrent
Registering "grunt-contrib-clean" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-clean/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK
+ clean
Registering "grunt-contrib-compass" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-compass/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-compass/package.json...OK
Loading "compass.js" tasks...OK
+ compass
Registering "grunt-contrib-concat" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-concat/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-concat/package.json...OK
Loading "concat.js" tasks...OK
+ concat
Registering "grunt-contrib-connect" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-connect/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-connect/package.json...OK
Loading "connect.js" tasks...OK
+ connect
Registering "grunt-contrib-copy" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-copy/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-copy/package.json...OK
Loading "copy.js" tasks...OK
+ copy
Registering "grunt-contrib-cssmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-cssmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-cssmin/package.json...OK
Loading "cssmin.js" tasks...OK
+ cssmin
Registering "grunt-contrib-htmlmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-htmlmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-htmlmin/package.json...OK
Loading "htmlmin.js" tasks...OK
+ htmlmin
Registering "grunt-contrib-imagemin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/package.json...OK
Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'bin-wrapper'
>> at Function.Module._resolveFilename (module.js:338:15)
>> at Function.Module._load (module.js:280:25)
>> at Module.require (module.js:364:17)
>> at require (module.js:380:17)
>> at Object.<anonymous> (/Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/lib/index.js:3:18)
>> at Module._compile (module.js:456:26)
>> at Object.Module._extensions..js (module.js:474:10)
>> at Module.load (module.js:356:32)
>> at Function.Module._load (module.js:312:12)
>> at Module.require (module.js:364:17)
Registering "grunt-contrib-jshint" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-jshint/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-jshint/package.json...OK
Loading "jshint.js" tasks...OK
+ jshint
Registering "grunt-contrib-uglify" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-uglify/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-uglify/package.json...OK
Loading "uglify.js" tasks...OK
+ uglify
Registering "grunt-contrib-watch" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-watch/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-watch/package.json...OK
Loading "watch.js" tasks...OK
+ watch
Registering "grunt-filerev" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-filerev/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-filerev/package.json...OK
Loading "filerev.js" tasks...OK
+ filerev
Registering "grunt-google-cdn" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-google-cdn/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-google-cdn/package.json...OK
Loading "cdnify.js" tasks...OK
+ cdnify
Registering "grunt-newer" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-newer/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-newer/package.json...OK
Loading "newer.js" tasks...OK
+ any-newer, newer, newer-clean, newer-postrun
Registering "grunt-ng-annotate" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-ng-annotate/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-ng-annotate/package.json...OK
Loading "ng-annotate.js" tasks...OK
+ ngAnnotate
Registering "grunt-svgmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-svgmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-svgmin/package.json...OK
Loading "svgmin.js" tasks...OK
+ svgmin
Registering "grunt-usemin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-usemin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-usemin/package.json...OK
Loading "usemin.js" tasks...OK
+ usemin, useminPrepare
Registering "grunt-wiredep" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-wiredep/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-wiredep/package.json...OK
Loading "wiredep.js" tasks...OK
+ wiredep
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ build, default, serve, server, test
Running tasks: build
Running "build" task
Running "clean:dist" (clean) task
Verifying property clean.dist exists in config...OK
Files: [no src]
Options: force=false, no-write=false
Options: force=false, no-write=false
Running "wiredep" task
Running "wiredep:app" (wiredep) task
Verifying property wiredep.app exists in config...OK
Files: app/index.html
Verifying property wiredep.app.src exists in config...OK
Options: src=["app/index.html"], ignorePath={}
Running "wiredep:sass" (wiredep) task
Verifying property wiredep.sass exists in config...OK
Files: app/styles/main.scss
Verifying property wiredep.sass.src exists in config...OK
Options: src=["app/styles/{,*/}*.{scss,sass}"], ignorePath={}
Running "useminPrepare" task
Running "useminPrepare:html" (useminPrepare) task
Verifying property useminPrepare.html exists in config...OK
Files: app/index.html -> html
Options: dest="dist", flow={"html":{"steps":{"js":["concat","uglifyjs"],"css":["cssmin"]},"post":{}}}
Going through app/index.html to update the config
Looking for build script HTML comment blocks
Configuration is now:
concat:
{ generated:
{ files:
[ { dest: '.tmp/concat/scripts/oldieshim.js',
src:
[ 'bower_components/es5-shim/es5-shim.js ',
'bower_components/json3/lib/json3.js ' ] },
{ dest: '.tmp/concat/scripts/vendor.js',
src:
[ 'bower_components/jquery/dist/jquery.js',
'bower_components/angular/angular.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/angular-animate/angular-animate.js',
'bower_components/angular-aria/angular-aria.js',
'bower_components/angular-cookies/angular-cookies.js',
'bower_components/angular-messages/angular-messages.js',
'bower_components/angular-resource/angular-resource.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-sanitize/angular-sanitize.js',
'bower_components/angular-touch/angular-touch.js' ] },
{ dest: '.tmp/concat/scripts/scripts.js',
src:
[ '{.tmp,app}/scripts/app.js ',
'{.tmp,app}/scripts/controllers/main.js ' ] } ] } }
uglify:
{ generated:
{ files:
[ { dest: 'dist/scripts/oldieshim.js',
src: [ '.tmp/concat/scripts/oldieshim.js' ] },
{ dest: 'dist/scripts/vendor.js',
src: [ '.tmp/concat/scripts/vendor.js' ] },
{ dest: 'dist/scripts/scripts.js',
src: [ '.tmp/concat/scripts/scripts.js' ] } ] } }
cssmin:
{ generated:
{ files:
[ { dest: 'dist/styles/vendor.css',
src: [ 'bower_components/bootstrap/dist/css/bootstrap.css' ] },
{ dest: 'dist/styles/main.css',
src: [ '.tmp/styles/main.css' ] } ] } }
Running "concurrent:dist" (concurrent) task
Verifying property concurrent.dist exists in config...OK
Files: [no src] -> dist
Options: limit=8
Warning: Initializing
Command-line options: --verbose
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-autoprefixer" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-autoprefixer/package.json...OK
Loading "autoprefixer.js" tasks...OK
+ autoprefixer
Registering "grunt-concurrent" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-concurrent/package.json...OK
Loading "concurrent.js" tasks...OK
+ concurrent
Registering "grunt-contrib-clean" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-clean/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-clean/package.json...OK
Loading "clean.js" tasks...OK
+ clean
Registering "grunt-contrib-compass" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-compass/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-compass/package.json...OK
Loading "compass.js" tasks...OK
+ compass
Registering "grunt-contrib-concat" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-concat/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-concat/package.json...OK
Loading "concat.js" tasks...OK
+ concat
Registering "grunt-contrib-connect" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-connect/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-connect/package.json...OK
Loading "connect.js" tasks...OK
+ connect
Registering "grunt-contrib-copy" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-copy/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-copy/package.json...OK
Loading "copy.js" tasks...OK
+ copy
Registering "grunt-contrib-cssmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-cssmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-cssmin/package.json...OK
Loading "cssmin.js" tasks...OK
+ cssmin
Registering "grunt-contrib-htmlmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-htmlmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-htmlmin/package.json...OK
Loading "htmlmin.js" tasks...OK
+ htmlmin
Registering "grunt-contrib-imagemin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/package.json...OK
Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'bin-wrapper'
>> at Function.Module._resolveFilename (module.js:338:15)
>> at Function.Module._load (module.js:280:25)
>> at Module.require (module.js:364:17)
>> at require (module.js:380:17)
>> at Object.<anonymous> (/Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/lib/index.js:3:18)
>> at Module._compile (module.js:456:26)
>> at Object.Module._extensions..js (module.js:474:10)
>> at Module.load (module.js:356:32)
>> at Function.Module._load (module.js:312:12)
>> at Module.require (module.js:364:17)
Registering "grunt-contrib-jshint" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-jshint/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-jshint/package.json...OK
Loading "jshint.js" tasks...OK
+ jshint
Registering "grunt-contrib-uglify" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-uglify/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-uglify/package.json...OK
Loading "uglify.js" tasks...OK
+ uglify
Registering "grunt-contrib-watch" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-watch/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-contrib-watch/package.json...OK
Loading "watch.js" tasks...OK
+ watch
Registering "grunt-filerev" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-filerev/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-filerev/package.json...OK
Loading "filerev.js" tasks...OK
+ filerev
Registering "grunt-google-cdn" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-google-cdn/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-google-cdn/package.json...OK
Loading "cdnify.js" tasks...OK
+ cdnify
Registering "grunt-newer" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-newer/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-newer/package.json...OK
Loading "newer.js" tasks...OK
+ any-newer, newer, newer-clean, newer-postrun
Registering "grunt-ng-annotate" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-ng-annotate/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-ng-annotate/package.json...OK
Loading "ng-annotate.js" tasks...OK
+ ngAnnotate
Registering "grunt-svgmin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-svgmin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-svgmin/package.json...OK
Loading "svgmin.js" tasks...OK
+ svgmin
Registering "grunt-usemin" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-usemin/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-usemin/package.json...OK
Loading "usemin.js" tasks...OK
+ usemin, useminPrepare
Registering "grunt-wiredep" local Npm module tasks.
Reading /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-wiredep/package.json...OK
Parsing /Users/administrator/Desktop/CiscoShipping/ShippingSolution/node_modules/grunt-wiredep/package.json...OK
Loading "wiredep.js" tasks...OK
+ wiredep
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ build, default, serve, server, test
Running tasks: compass:dist
Running "compass:dist" (compass) task
Verifying property compass.dist exists in config...OK
File: [no files]
Options: sassDir="app/styles", cssDir=".tmp/styles", generatedImagesDir="dist/images/generated", imagesDir="app/images", javascriptsDir="app/scripts", fontsDir="app/styles/fonts", importPath="./bower_components", httpImagesPath="/images", httpGeneratedImagesPath="/images/generated", httpFontsPath="/styles/fonts", relativeAssets=false, assetCacheBuster=false, raw="Sass::Script::Number.precision = 10\n"
Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue.
Aborted due to warnings.
Execution Time (2015-01-27 14:27:21 UTC)
loading tasks 5ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 28%
compass:dist 12ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 67%
Total 18ms Use --force to continue.
Aborted due to warnings.
Execution Time (2015-01-27 14:27:19 UTC)
loading tasks 6ms 0%
clean:dist 6ms 0%
wiredep:app 185ms ▇▇▇▇▇ 10%
wiredep:sass 11ms ▇ 1%
useminPrepare:html 18ms ▇ 1%
concurrent:dist 1.7s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 88%
Total 1.9s
pdc1-f3t18r1:ShippingSolution administrator$
Is there something I am missing?
Thanks,
Ankit
I was having this same problem and I found that in the build process there is a task in the grunt file the uses ngAnnotate.
So I check on the package.config and I saw that package for grung-ng-annotate was missing so I went through their page and update it.
Use this to install it
npm install grunt-ng-annotate --save-dev
This will add your package to the config and then you will be able to run the "grunt" task without a problem and generate the "dist" folder.
https://github.com/mzgol/grunt-ng-annotate For more information.
Related
Okay so I have been trying to deploy a Next app to my Ubuntu 20.04 vps but I am unable to do so. I have uploaded all the files from my local machine to the server via ftp and then after trying to install it gets stuck and then killed ( please check the image to see where it gets stuck ). The app works perfectly in my local machine.
I tried by deleting .next directory, node_modules directory as well as package-lock.json file but the problem prevails.
Here's the Node and NPM version in my local machine:
Node: v14.15.0
NPM: v7.14.0
This is the Node and NPM version in my server:
Node: v14.18.2
NPM: v8.3.0
I have also attached my package.json file incase you want to see the dependencies
UPDATE
I some how installed the dependencies but now I am getting different type of errors when I run 'npm run dev' or 'npm run build'.
Here's what I get after I run npm run dev:
[20:09] [server1.example.com boomboom] # npm run dev
> boomboom#0.1.0 dev
> next dev
warn - Port 3000 is in use, trying 3001 instead.
ready - started server on 0.0.0.0:3001, url: http://localhost:3001
info - Loaded env from /home/user1/node-apps/boomboom/.env.local
error - ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[2].oneOf[4].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[2].oneOf[4].use[2]!./styles/Footer.module.css
/home/user1/node-apps/boomboom/node_modules/source-map/lib/util.js:101
// above the root is a no-op. Therefore we can remove all '.
SyntaxError: Unexpected end of input
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: SyntaxError: /home/user1/node-apps/boomboom/node_modules/mongodb-connection-string-url/node_modules/whatwg-url/package.json (directory description file): SyntaxError: Unexpected end of JSON input
<w> while resolving 'whatwg-url' in /home/user1/node-apps/boomboom/node_modules/mongodb-connection-string-url to a directory
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: SyntaxError: /home/user1/node-apps/boomboom/node_modules/mongodb-connection-string-url/node_modules/whatwg-url/package.json (directory description file): SyntaxError: Unexpected end of JSON input
<w> while resolving 'whatwg-url' in /home/user1/node-apps/boomboom/node_modules/mongodb-connection-string-url to a directory
This is what I get after I run npm run build:
[20:13] [server1.example.com boomboom] # npm run build
> boomboom#0.1.0 build
> next build
info - Loaded env from /home/user1/node-apps/boomboom/.env.local
info - Checking validity of types
error - ESLint: Failed to load plugin 'react' declared in '.eslintrc.json » eslint-config-next/core-web-vitals » /home/user1/node-apps/boomboom/node_modules/eslint-config-next/index.js': Cannot find module 'eslint-plugin-react' Require stack: - /home/user1/node-apps/boomboom/node_modules/eslint-config-next/index.js Referenced from: /home/user1/node-apps/boomboom/node_modules/eslint-config-next/index.js
> Build error occurred
/home/user1/node-apps/boomboom/node_modules/source-map/lib/util.js:101
// above the root is a no-op. Therefore we can remove all '.
SyntaxError: Unexpected end of input
at wrapSafe (internal/modules/cjs/loader.js:1001:16)
at Module._compile (internal/modules/cjs/loader.js:1049:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (/home/user1/node-apps/boomboom/node_modules/source-map/lib/source-map-generator.js:9:12)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
info - Creating an optimized production build .[20:13] [server1.example.com boomboom] #
This is driving me nuts.
IDE: Visual Studion 2019
Project: Created a new "Basic Vue.js project" - I chose the *.ts flavour
I validate the new site runs. It does.
Following the quick start on Vuetify : https://vuetifyjs.com/en/getting-started/quick-start/#bootstrapping-the-vuetify-object
After each step I validate the site will still compile and run.
I reach the section where we add new modules to our project. I run this line:
npm install sass sass-loader fibers deepmerge -D
And now the site will not run. When I debug I get this output:
------ Build started: Project: MCCC.Web, Configuration: Debug Any CPU ------
> mccc.web#0.1.0 build C:\Labs\MCCC\Web\MCCC-Web\MCCC.Web
> vue-cli-service build
- Building for production...
Starting type checking service...
Using 1 worker with 2048MB memory limit
ERROR Failed to compile with 1 errors5:04:50 PM
error in ./src/main.ts
Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
Thread Loader (Worker 0)
C:\Labs\MCCC\Web\MCCC-Web\MCCC.Web\babel.config.js: Error while loading config - Cannot find module 'fibers'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (C:\Labs\MCCC\Web\MCCC-Web\MCCC.Web\babel.config.js:17:32)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
# multi ./src/main.ts
ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mccc.web#0.1.0 build: `vue-cli-service build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mccc.web#0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dwainwright.BC\AppData\Roaming\npm-cache\_logs\2020-04-26T21_04_50_521Z-debug.log
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VisualStudio\v16.0\Node.js Tools\Microsoft.NodejsToolsV2.targets(60,5): error MSB3073: The command "npm run build" exited with code 1.
Done building project "MCCC.Web.njsproj" -- FAILED.
Build FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The line that sticks out the most to me is:
C:\Labs\MCCC\Web\MCCC-Web\MCCC.Web\babel.config.js: Error while loading config - Cannot find module 'fibers'
fibres is references in the babel.config.json where I added the rules laid out in quick start:
module.exports = {
presets: [
'#vue/app',
'#babel/preset-env'
],
rules: [
{
test: /\.s(c|a)ss$/,
use: [
'vue-style-loader',
'css-loader',
{
loader: 'sass-loader',
// Requires sass-loader#^7.0.0
options: {
implementation: require('sass'),
fiber: require('fibers'),
indentedSyntax: true // optional
},
// Requires sass-loader#^8.0.0
options: {
implementation: require('sass'),
sassOptions: {
fiber: require('fibers'),
indentedSyntax: true // optional
},
},
},
],
},
]
};
Does anybody know how i can resolve this? Happy to share further info; not sure what else you may need.
Are you using the latest version of the docs? I followed the link you provided and the anchor #bootstrapping-the-vuetify-object doesn't appear to exist anymore. I was able to get a basic project up and running successfully following these steps:
vue create myapp: Selected "custom" and ticked all the boxes, for TypeScript, chose the default "class-style components"
verified that npm run serve worked
vue add vuetify: Selected "Configure", and these options:
Y (default)
y
y
Material Design Icons (default)
N (default)
Y (default)
English (default)
npm run serve would run, but I got warnings about type declaration for vuetify/lib. This answer led me to this FAQ item which made the warnings go away. (You have to add "vuetify" to the compilerOptions.types array in the root tsconfig.json for the project.)
FWIW, fibers does not appear to be included in the project at all anymore (searched for "fibers" in package-lock.json). My babel.config.js file looks like:
module.exports = {
presets: [
'#vue/cli-plugin-babel/preset'
]
}
And vue.config.js looks like:
module.exports = {
transpileDependencies: [
'vuetify'
]
}
Hope this helps!
I have my website on AngularJs and it was working just fine before we updated the NPM clean. Whenever we tried to build the project with 'Grunt Build' it gets stuck after processing the images part.
Reinstalled NPM previous version
Resetup complete environment
Deleted cache and everything
$ grunt build -v
Initializing
Command-line options: --verbose, --gruntfile=C:\Users\YouStable\Documents\newyst\Gruntfile.js
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
=============================================================================
Reading "Gruntfile.js" Gruntfile...OK
Registering Gruntfile tasks.
Registering "grunt-autoprefixer" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-autoprefixer\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-autoprefixer\package.json...OK
Loading "autoprefixer.js" tasks...OK
+ autoprefixer
Registering "grunt-filerev-replace" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-filerev-replace\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-filerev-replace\package.json...OK
Loading "filerev_replace.js" tasks...OK
+ filerev_replace
Registering "grunt-concurrent" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-concurrent\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-concurrent\package.json...OK
Loading "concurrent.js" tasks...OK
+ concurrent
Registering "grunt-contrib-clean" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-clean\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-clean\package.json...OK
Loading "clean.js" tasks...OK
+ clean
Registering "grunt-contrib-concat" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-concat\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-concat\package.json...OK
Loading "concat.js" tasks...OK
+ concat
Registering "grunt-contrib-connect" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-connect\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-connect\package.json...OK
Loading "connect.js" tasks...OK
+ connect
Registering "grunt-contrib-copy" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-copy\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-copy\package.json...OK
Loading "copy.js" tasks...OK
+ copy
Registering "grunt-contrib-cssmin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-cssmin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-cssmin\package.json...OK
Loading "cssmin.js" tasks...OK
+ cssmin
Registering "grunt-contrib-htmlmin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-htmlmin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-htmlmin\package.json...OK
Loading "htmlmin.js" tasks...OK
+ htmlmin
Registering "grunt-contrib-imagemin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-imagemin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-imagemin\package.json...OK
Loading "imagemin.js" tasks...OK
+ imagemin
Registering "grunt-contrib-jshint" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-jshint\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-jshint\package.json...OK
Loading "jshint.js" tasks...OK
+ jshint
Registering "grunt-contrib-uglify" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-uglify\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-uglify\package.json...OK
Loading "uglify.js" tasks...OK
+ uglify
Registering "grunt-contrib-watch" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-watch\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-contrib-watch\package.json...OK
Loading "watch.js" tasks...OK
+ watch
Registering "grunt-filerev" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-filerev\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-filerev\package.json...OK
Loading "filerev.js" tasks...OK
+ filerev
Registering "grunt-google-cdn" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-google-cdn\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-google-cdn\package.json...OK
Loading "cdnify.js" tasks...OK
+ cdnify
Registering "grunt-newer" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-newer\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-newer\package.json...OK
Loading "newer.js" tasks...OK
+ any-newer, newer, newer-clean, newer-postrun
Registering "grunt-ng-annotate" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-ng-annotate\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-ng-annotate\package.json...OK
Loading "ng-annotate.js" tasks...OK
+ ngAnnotate
Registering "grunt-svgmin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-svgmin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-svgmin\package.json...OK
Loading "svgmin.js" tasks...OK
+ svgmin
Registering "grunt-usemin" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-usemin\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-usemin\package.json...OK
Loading "usemin.js" tasks...OK
+ usemin, useminPrepare
Registering "grunt-wiredep" local Npm module tasks.
Reading C:\Users\YouStable\Documents\newyst\node_modules\grunt-wiredep\package.json...OK
Parsing C:\Users\YouStable\Documents\newyst\node_modules\grunt-wiredep\package.json...OK
Loading "wiredep.js" tasks...OK
+ wiredep
Initializing config...OK
Loading "Gruntfile.js" tasks...OK
+ build, default, serve, server, test
Running tasks: svgmin
Running "svgmin" task
Running "svgmin:dist" (svgmin) task
Verifying property svgmin.dist exists in config...OK
Files: app/images/1-high.svg -> dist/images/1-high.svg
Files: app/images/9-high.svg -> dist/images/9-high.svg
Files: app/images/dreamhost.svg -> dist/images/dreamhost.svg
Files: app/images/icons/cd-arrow.svg -> dist/images/icons/cd-arrow.svg
Files: app/images/icons/cloud.svg -> dist/images/icons/cloud.svg
Files: app/images/icons/contract.svg -> dist/images/icons/contract.svg
Files: app/images/icons/curriculum.svg -> dist/images/icons/curriculum.svg
Files: app/images/icons/http.svg -> dist/images/icons/http.svg
Files: app/images/icons/piggy-bank.svg -> dist/images/icons/piggy-bank.svg
Files: app/images/icons/sms_interact.svg -> dist/images/icons/sms_interact.svg
Files: app/images/icons/speaker.svg -> dist/images/icons/speaker.svg
Files: app/images/icons/website.svg -> dist/images/icons/website.svg
Files: app/images/lowa.svg -> dist/images/lowa.svg
Files: app/images/svgs/boy.svg -> dist/images/svgs/boy.svg
Files: app/images/svgs/call.svg -> dist/images/svgs/call.svg
Files: app/images/svgs/cancel.svg -> dist/images/svgs/cancel.svg
Files: app/images/svgs/chat.svg -> dist/images/svgs/chat.svg
Files: app/images/svgs/chat1.svg -> dist/images/svgs/chat1.svg
Files: app/images/svgs/check.svg -> dist/images/svgs/check.svg
Files: app/images/svgs/Digital_Marketing_Image.svg -> dist/images/svgs/Digital_Marketing_Image.svg
Files: app/images/svgs/drupal.svg -> dist/images/svgs/drupal.svg
Files: app/images/svgs/email.svg -> dist/images/svgs/email.svg
Files: app/images/svgs/ink.svg -> dist/images/svgs/ink.svg
Files: app/images/svgs/joomla.svg -> dist/images/svgs/joomla.svg
Files: app/images/svgs/like.svg -> dist/images/svgs/like.svg
Files: app/images/svgs/magento.svg -> dist/images/svgs/magento.svg
Files: app/images/svgs/man.svg -> dist/images/svgs/man.svg
Files: app/images/svgs/phone-call.svg -> dist/images/svgs/phone-call.svg
Files: app/images/svgs/picture.svg -> dist/images/svgs/picture.svg
Files: app/images/svgs/shopping-cart.svg -> dist/images/svgs/shopping-cart.svg
Files: app/images/svgs/wordpress.svg -> dist/images/svgs/wordpress.svg
Options: (none)
Reading app/images/1-high.svg...OK
√ app/images/1-high.svg (saved 7 B 0%)
Writing dist/images/1-high.svg...OK
Reading app/images/9-high.svg...OK
√ app/images/9-high.svg (saved 76.48 kB 25%)
Writing dist/images/9-high.svg...OK
Reading app/images/dreamhost.svg...OK
√ app/images/dreamhost.svg (saved 147 B 6%)
Writing dist/images/dreamhost.svg...OK
Reading app/images/icons/cd-arrow.svg...OK
√ app/images/icons/cd-arrow.svg (saved 156 B 42%)
Writing dist/images/icons/cd-arrow.svg...OK
Reading app/images/icons/cloud.svg...OK
√ app/images/icons/cloud.svg (saved 2.97 kB 47%)
Writing dist/images/icons/cloud.svg...OK
Reading app/images/icons/contract.svg...OK
√ app/images/icons/contract.svg (saved 900 B 35%)
Writing dist/images/icons/contract.svg...OK
Reading app/images/icons/curriculum.svg...OK
√ app/images/icons/curriculum.svg (saved 887 B 27%)
Writing dist/images/icons/curriculum.svg...OK
Reading app/images/icons/http.svg...OK
√ app/images/icons/http.svg (saved 1.18 kB 29%)
Writing dist/images/icons/http.svg...OK
Reading app/images/icons/piggy-bank.svg...OK
√ app/images/icons/piggy-bank.svg (saved 1.07 kB 17%)
Writing dist/images/icons/piggy-bank.svg...OK
Reading app/images/icons/sms_interact.svg...OK
√ app/images/icons/sms_interact.svg (saved 9.31 kB 55%)
Writing dist/images/icons/sms_interact.svg...OK
Reading app/images/icons/speaker.svg...OK
√ app/images/icons/speaker.svg (saved 1.04 kB 29%)
Writing dist/images/icons/speaker.svg...OK
Reading app/images/icons/website.svg...OK
√ app/images/icons/website.svg (saved 1.3 kB 27%)
Writing dist/images/icons/website.svg...OK
Reading app/images/lowa.svg...OK
√ app/images/lowa.svg (saved 47.01 kB 27%)
Writing dist/images/lowa.svg...OK
Reading app/images/svgs/boy.svg...OK
√ app/images/svgs/boy.svg (saved 1.47 kB 22%)
Writing dist/images/svgs/boy.svg...OK
Reading app/images/svgs/call.svg...OK
√ app/images/svgs/call.svg (saved 614 B 22%)
Writing dist/images/svgs/call.svg...OK
Reading app/images/svgs/cancel.svg...OK
√ app/images/svgs/cancel.svg (saved 233 B 50%)
Writing dist/images/svgs/cancel.svg...OK
Reading app/images/svgs/chat.svg...OK
√ app/images/svgs/chat.svg (saved 286 B 19%)
Writing dist/images/svgs/chat.svg...OK
Reading app/images/svgs/chat1.svg...OK
√ app/images/svgs/chat1.svg (saved 283 B 19%)
Writing dist/images/svgs/chat1.svg...OK
Reading app/images/svgs/check.svg...OK
√ app/images/svgs/check.svg (saved 182 B 50%)
Writing dist/images/svgs/check.svg...OK
Reading app/images/svgs/Digital_Marketing_Image.svg...OK
√ app/images/svgs/Digital_Marketing_Image.svg (saved 24.02 kB 23%)
Writing dist/images/svgs/Digital_Marketing_Image.svg...OK
Reading app/images/svgs/drupal.svg...OK
√ app/images/svgs/drupal.svg (saved 22.07 kB 88%)
Writing dist/images/svgs/drupal.svg...OK
Reading app/images/svgs/email.svg...OK
√ app/images/svgs/email.svg (saved 1.24 kB 22%)
Writing dist/images/svgs/email.svg...OK
Reading app/images/svgs/ink.svg...OK
√ app/images/svgs/ink.svg (saved 3.31 kB 41%)
Writing dist/images/svgs/ink.svg...OK
Reading app/images/svgs/joomla.svg...OK
√ app/images/svgs/joomla.svg (saved 1.29 kB 44%)
Writing dist/images/svgs/joomla.svg...OK
Reading app/images/svgs/like.svg...OK
√ app/images/svgs/like.svg (saved 382 B 23%)
Writing dist/images/svgs/like.svg...OK
Reading app/images/svgs/magento.svg...OK
√ app/images/svgs/magento.svg (saved 435 B 40%)
Writing dist/images/svgs/magento.svg...OK
Reading app/images/svgs/man.svg...OK
√ app/images/svgs/man.svg (saved 1.5 kB 23%)
Writing dist/images/svgs/man.svg...OK
Reading app/images/svgs/phone-call.svg...OK
√ app/images/svgs/phone-call.svg (saved 741 B 26%)
Writing dist/images/svgs/phone-call.svg...OK
Reading app/images/svgs/picture.svg...OK
√ app/images/svgs/picture.svg (saved 450 B 24%)
Writing dist/images/svgs/picture.svg...OK
Reading app/images/svgs/shopping-cart.svg...OK
√ app/images/svgs/shopping-cart.svg (saved 663 B 39%)
Writing dist/images/svgs/shopping-cart.svg...OK
Reading app/images/svgs/wordpress.svg...OK
√ app/images/svgs/wordpress.svg (saved 715 B 35%)
Writing dist/images/svgs/wordpress.svg...OK
Total saved: 202.33 kB
Done.
Execution Time (2019-03-26 10:12:18 UTC+5:30)
loading tasks 13ms █ 1%
svgmin:dist 2s ███████████████████████████████████████████████ 99%
Total 2s
Its still working fine on other device with old setup but new setup doesn't work at all. Please check and review.
What is the node version are you using? There might be compatibility issues.
You haven't pasted the what error you got.! So, will give you the general troubleshooting of the issue.
For troubleshooting whenever you are facing kind of wired issue. Just go ahead and clean the cache by using npm cache clean.
I am having a strange issue with grunt-contrib-cssmin. It never stops or gives errors. I am using
C:\projects\doeclf>grunt --version && node --version && npm --version
grunt-cli v0.1.13
grunt v0.4.5
v0.12.4
2.10.1
My grunt.js has following in it
cssmin: {
target: {
files: [{
expand: true,
cwd: 'css/',
src: ['index.css', '!*.min.css'],
dest: 'css/',
ext: '.min.css'
}]
}
}
My project structure is as follows
|
|
grunt.js
|
|__css
|
|__index.css
When I run my grunt task this is the out it throws and it never finishes.
the output from my grunt cssmin --verbose is
[4mInitializing[24m
Command-line options: [36m--verbose[39m
Reading "Gruntfile.js" Gruntfile...[32mOK[39m
[1mRegistering Gruntfile tasks.[22m
Reading package.json...[32mOK[39m
Parsing package.json...[32mOK[39m
Initializing config...[32mOK[39m
[1mRegistering "grunt-contrib-requirejs" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-requirejs\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-requirejs\package.json...[32mOK[39m
Loading "requirejs.js" tasks...[32mOK[39m
+ [36mrequirejs[39m
[1mRegistering "grunt-contrib-compass" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-compass\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-compass\package.json...[32mOK[39m
Loading "compass.js" tasks...[32mOK[39m
+ [36mcompass[39m
[1mRegistering "grunt-contrib-concat" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-concat\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-concat\package.json...[32mOK[39m
Loading "concat.js" tasks...[32mOK[39m
+ [36mconcat[39m
[1mRegistering "grunt-contrib-connect" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-connect\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-connect\package.json...[32mOK[39m
Loading "connect.js" tasks...[32mOK[39m
+ [36mconnect[39m
[1mRegistering "grunt-contrib-cssmin" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-cssmin\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-cssmin\package.json...[32mOK[39m
Loading "cssmin.js" tasks...[32mOK[39m
+ [36mcssmin[39m
[1mRegistering "csswring" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\csswring\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\csswring\package.json...[32mOK[39m
Loading "csswring.js" tasks...[32mOK[39m
+ [36mcsswring[39m
[1mRegistering "grunt-contrib-sass" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-sass\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-sass\package.json...[32mOK[39m
Loading "sass.js" tasks...[32mOK[39m
+ [36msass[39m
[1mRegistering "grunt-contrib-uglify" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-uglify\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-uglify\package.json...[32mOK[39m
Loading "uglify.js" tasks...[32mOK[39m
+ [36muglify[39m
[1mRegistering "grunt-contrib-watch" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-contrib-watch\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-contrib-watch\package.json...[32mOK[39m
Loading "watch.js" tasks...[32mOK[39m
+ [36mwatch[39m
[1mRegistering "grunt-express" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-express\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-express\package.json...[32mOK[39m
[1mRegistering "grunt-parallel" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-express\node_modules\grunt-parallel\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-express\node_modules\grunt-parallel\package.json...[32mOK[39m
Loading "parallel.js" tasks...[32mOK[39m
+ [36mparallel[39m
Loading "express.js" tasks...[32mOK[39m
+ [36mexpress[39m, [36mexpress-keepalive[39m, [36mexpress-restart[39m, [36mexpress-server[39m, [36mexpress-start[39m
[1mRegistering "grunt-open" local Npm module tasks.[22m
Reading C:\projects\doeclf\node_modules\grunt-open\package.json...[32mOK[39m
Parsing C:\projects\doeclf\node_modules\grunt-open\package.json...[32mOK[39m
Loading "open.js" tasks...[32mOK[39m
+ [36mopen[39m
Loading "Gruntfile.js" tasks...[32mOK[39m
+ [36mbuildsass[39m, [36mconcatcss[39m, [36mcssmin[39m, [36mdefault[39m, [36mserver[39m
Running tasks: [36mcssmin[39m
[4mRunning "cssmin" task[24m
[4mRunning "cssmin" task[24m
[4mRunning "cssmin" task[24m
[4mRunning "cssmin" task[24m
[4mRunning "cssmin" task[24m
Your target is fine and works perfectly, so the issue is somewhere else in your code.
Specifically, your last line shows that you are redefining your own cssmin task
Loading "Gruntfile.js" tasks...[32mOK[39m
+ [36mbuildsass[39m, [36mconcatcss[39m, [36mcssmin[39m, [36mdefault[39m, [36mserver[39m
This probably causes the infinite looping, call your own task another name (mincss?) and you should be fine.
I'm having trouble deploying my application on the OpenShift platform.
It seems like it's bcrypt that fails but everything also seems to install properly.
I'm afraid I'll be having same trouble with every node module I wanna use.
I thought that may be, the problem is with the version of the node module.
Still I have no clue. I hope someone could help me find out what's going on.
I copy bellow my entire jenkins console output (note that I had the exact same output after my first git push on the OpenShift server).
Started by user Jenkins Admin Building remotely on nodejsbldr in workspace /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo Checkout:repo / /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo - hudson.remoting.Channel#129c587:nodejsbldr Using strategy: Default Checkout:repo / /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo - hudson.remoting.LocalChannel#d1cdcd Wiping out workspace first. Cloning the remote Git repository Cloning repository origin Fetching upstream changes from ssh://mySshPrivateId#nodejs-caty.rhcloud.com/~/git/nodejs.git Seen branch in repository origin/HEAD Seen branch in repository origin/alpha Seen branch in repository origin/master Commencing build of Revision 26cbed22880b5ac3b5bab4b016dbc5fe75579792 (origin/alpha) Checking out Revision 26cbed22880b5ac3b5bab4b016dbc5fe75579792 (origin/alpha) No change to record in branch origin/alpha [repo] $ /bin/sh -xe /tmp/hudson154161094843280943.sh
+ source /usr/lib/openshift/cartridge_sdk/bash/sdk
++ '[' false == true ']'
++ OO_BASH_SDK=true
+ alias 'rsync=rsync --delete-after -az -e '\''/usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh'\'''
+ upstream_ssh=mySshPrivateId#nodejs-caty.rhcloud.com
+ rm -f /var/lib/openshift/myPrivateWorkSpace//app-deployments/current/metadata.json
+ marker_present force_clean_build
+ '[' -f /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo//.openshift/markers/force_clean_build ']'
+ set +e
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh 'mySshPrivateId#nodejs-caty.rhcloud.com:$OPENSHIFT_BUILD_DEPENDENCIES_DIR' /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/build-dependencies/
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh 'mySshPrivateId#nodejs-caty.rhcloud.com:$OPENSHIFT_DEPENDENCIES_DIR' /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/dependencies/
+ set -e
+ gear build Building git ref 'origin/alpha', commit 26cbed2 Building NodeJS cartridge npm info it worked if it ends with ok npm info using npm#1.2.17 npm info using node#v0.10.5 npm info preinstall Caty#0.0.1a npm info build /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo npm info linkStuff Caty#0.0.1a npm info build /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo/node_modules/csrf npm info preinstall csrf#0.0.3 npm info linkStuff csrf#0.0.3 npm info install csrf#0.0.3 npm info postinstall csrf#0.0.3 npm info build /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo/node_modules/session-mongoose npm info preinstall session-mongoose#0.4.1 npm info linkStuff session-mongoose#0.4.1 npm info install session-mongoose#0.4.1 npm info postinstall session-mongoose#0.4.1 npm info install Caty#0.0.1a npm info postinstall Caty#0.0.1a npm info prepublish Caty#0.0.1a npm info ok
+ /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh mySshPrivateId#nodejs-caty.rhcloud.com 'gear stop --conditional
--exclude-web-proxy --git-ref gtiRefNum' Stopping gear... Stopping MongoDB cartridge Stopping NodeJS cartridge
++ /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh mySshPrivateId#nodejs-caty.rhcloud.com 'gear create-deployment-dir'
+ deployment_dir=2014-03-12_22-42-14.111
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh /var/lib/openshift/myPrivateWorkSpace//app-deployments/current/metadata.json mySshPrivateId#nodejs-caty.rhcloud.com:app-deployments/2014-03-12_22-42-14.111/metadata.json
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh
--exclude .git /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo/ mySshPrivateId#nodejs-caty.rhcloud.com:app-root/runtime/repo/
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/build-dependencies/ mySshPrivateId#nodejs-caty.rhcloud.com:app-root/runtime/build-dependencies/
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/dependencies/ mySshPrivateId#nodejs-caty.rhcloud.com:app-root/runtime/dependencies/
+ /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh mySshPrivateId#nodejs-caty.rhcloud.com 'gear remotedeploy
--deployment-datetime 2014-03-12_22-42-14.111' Preparing build for deployment Deployment id is aa14cca3 Activating deployment Starting MongoDB cartridge Starting NodeJS cartridge
DEBUG: Running node-supervisor with DEBUG: program 'app.js' DEBUG:
--watch '.' DEBUG: --ignore 'undefined' DEBUG: --extensions 'node|js|coffee' DEBUG: --exec 'node'
DEBUG: Starting child process with 'node app.js' DEBUG: Watching directory '/var/lib/openshift/mySshPrivateId/app-root/runtime/repo' for changes. Failed to load c++ bson extension, using pure JS version
/var/lib/openshift/mySshPrivateId/app-root/runtime/repo/node_modules/bcrypt/node_modules/bindings/bindings.js:79
throw e
^ Error: /var/lib/openshift/mySshPrivateId/app-root/runtime/repo/node_modules/bcrypt/build/Release/bcrypt_lib.node: invalid ELF header
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at bindings (/var/lib/openshift/mySshPrivateId/app-root/runtime/repo/node_modules/bcrypt/node_modules/bindings/bindings.js:74:15)
at Object.<anonymous> (/var/lib/openshift/mySshPrivateId/app-root/runtime/repo/node_modules/bcrypt/bcrypt.js:1:97)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12) DEBUG: Program node app.js exited with code 8
DEBUG: Starting child process with 'node app.js' Archiving artifacts Finished: SUCCESS
The extracted quote about the versions :
using npm#1.2.17 npm info using node#v0.10.5
And my application dependencies list :
"dependencies": {
"express": "3.4.8",
"jade": "1.1.5",
"socket.io": "0.9.16",
"bcrypt": "0.7.7",
"colors": "0.6.2",
"connect": "2.13.0",
"connect-mongo": "0.4.0",
"cookie": "0.1.1",
"mongodb": "1.3.23",
"mongoose": "3.8.6"
},
Thanks in advance for anyone brave enough to risk his self into that bunch of infos. :)
I've had the same problem, I suspect that since I am working on a mac it is related to the OSX bcrypt compilation issue that is described here.
I have tried to remove the node_modules directory and let OpenShift run npm and download the dependencies again but for some reason that did not work for me.
I have ended up creating a new application and committing my repository while excluding the node_module folder which solved my problem.