Closed dbortoluzzi closed 8 years ago
@dbortoluzzi Can I see the package.json
?
{
"name": "XXX",
"version": "0.1.0",
"description": "XXX",
"private": true,
"repository": {
"type": "git",
"url": "XXX"
},
"main": "server/server.js",
"scripts": {
"pretest": "jshint .",
"test": "grunt test"
},
"dependencies": {
"JSONStream": "^1.0.6",
"async": "^1.5.0",
"compression": "^1.0.3",
"cors": "^2.5.2",
"csvtojson": "^0.4.3",
"debug": "^2.2.0",
"errorhandler": "^1.1.1",
"fs": "0.0.2",
"grunt": "^0.4.5",
"line-by-line": "^0.1.3",
"loopback": "^2.14.0",
"loopback-boot": "^2.6.5",
"loopback-datasource-juggler": "^2.19.0",
"loopback-edge-arangodb": "^1.1.0",
"loopback-sdk-angular": "^1.5.0",
"md5": "^2.0.0",
"meow": "^3.3.0",
"node-geocoder": "^3.4.0",
"q": "^1.4.1",
"serve-favicon": "^2.0.1",
"thread-sleep": "^1.0.4",
"underscore": "^1.8.3"
},
"optionalDependencies": {
"loopback-explorer": "^1.1.0"
},
"devDependencies": {
"connect-livereload": "^0.5.3",
"grunt": "^0.4.5",
"grunt-autoprefixer": "^3.0.3",
"grunt-concurrent": "^1.0.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compass": "^0.7.2",
"grunt-contrib-concat": "^0.4.0",
"grunt-contrib-connect": "^0.8.0",
"grunt-contrib-copy": "^0.6.0",
"grunt-contrib-cssmin": "^0.10.0",
"grunt-contrib-htmlmin": "^0.3.0",
"grunt-contrib-imagemin": "^0.8.1",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-less": "^1.0.1",
"grunt-contrib-uglify": "^0.6.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-docular": "^0.2.4",
"grunt-filerev": "^2.0.0",
"grunt-google-cdn": "^0.4.0",
"grunt-karma": "^0.11.2",
"grunt-loopback-sdk-angular": "^1.1.2",
"grunt-newer": "^0.7.0",
"grunt-ng-annotate": "^0.4.0",
"grunt-nodemon": "^0.4.0",
"grunt-svgmin": "^0.4.0",
"grunt-usemin": "^2.1.1",
"grunt-wiredep": "^1.7.0",
"jasmine-core": "^2.3.4",
"jshint": "^2.5.6",
"jshint-stylish": "^1.0.0",
"karma": "^0.12.37",
"karma-jasmine": "^0.3.6",
"karma-phantomjs-launcher": "^0.2.0",
"load-grunt-tasks": "^0.6.0",
"open": "0.0.5",
"phantomjs": "^1.9.17",
"time-grunt": "^1.0.0"
},
"engines": {
"node": ">=0.10.0"
},
"bundleDependencies": [
"compression",
"cors",
"errorhandler",
"loopback",
"loopback-boot",
"loopback-connector-arangodb",
"loopback-datasource-juggler",
"loopback-explorer",
"q",
"serve-favicon",
"underscore"
]
}
try to run in sequence:
npm uninstall npm
sudo npm install -g npm@2.11.2
and finally start deploy. Might be conflicts with previous version of npm.
Let me know if it works..
I've tried now and it works.
Thank you very much!
For the benefit of anyone else coming here in search of a solution: This is a bug in one of the packages you are bundling into your package, there is a package.json somewhere whose "main"
property is not a string. An example is angular-ui/ui-grid#4743. This bug is exposed by npm >= 2.12.0 (specifically, 9583cc3).
@dbortoluzzi probably shouldn't have closed this ticket. It's pretty bad that there is no way to know WHICH package is broken from the error message. Downgrading to an old version of node is clearly not a solution.
I'm agree with you @boxed. Maybe since the date of this post something changed? Let me know
Would surprise me. It's certainly just as bad in the latest stable you get on mac with brew.
Hi,
today I've updated nodejs to v.0.12.8. All it was fine, but when I build my application with strongloop (slc build -n -b), the building process hang up with this error:
I've tried also to update npm to 3.5.0. and the error is the same.
Here you can find the stack trace of npm:
I've tried to do:
If you want any other informations, tell me.
Thank you very much!
Best regards, Daniele