javascript - NPM Error: Cannot find module 'are-we-there-yet' -
we use codeship continuous integration , modulus hosting our projects. code running until last week, i'm getting following error.
→ modulus deploy -p 'project_name' welcome modulus logged in user_name selecting project_name compressing project... 5.7 mb written uploading project... upload progress [===================] 100% deploying project... starting build. creating directories build environment. downloading source. executing build. package found: /package.json installing node 0.10.25 installing npm 3.3.4 installing packages /package.json module.js:340 throw err; ^ error: cannot find module 'are-we-there-yet' @ function.module._resolvefilename (module.js:338:15) @ function.module._load (module.js:280:25) @ module.require (module.js:364:17) @ require (module.js:380:17) @ object.<anonymous> (/mnt/home/.nvm/v0.10.25/lib/node_modules/npm/node_modules/npmlog/log.js:2:16) @ module._compile (module.js:456:26) @ object.module._extensions..js (module.js:474:10) @ module.load (module.js:356:32) @ function.module._load (module.js:312:12) @ module.require (module.js:364:17) npm install failed, trying again
here package.json file
{ "name": "project-name", "version": "0.0.1-77", "description": "", "main": "index.js", "scripts": { "test": "echo \"error: no test specified\" && exit 1", "start": "node index.js" }, "engines": { "node": "0.10.25", "npm": "2.x.x" }, "author": "author_name", "license": "isc", "dependencies": { "express": "3.5.1", "underscore": "^1.6.0", "handlebars": "^3.0.3", "rendr": "1.0.3", "rendr-handlebars": "0.2.0", "request": "~2.30.0", "config": "^0.4.35" }, "devdependencies": { "grunt": "^0.4.4", "grunt-browserify": "^1.2.12", "grunt-contrib-concat": "^0.5.0", "grunt-contrib-handlebars": "^0.8.0", "grunt-contrib-less": "^0.11.0", "grunt-contrib-watch": "^0.6.1", "nodemon": "^1.0.17" } }
note- project working fine week back. i'm facing issue.
i had same problem modulus.io. worked last week. failed today. fixed specifying npm version explicitly in packages.json
.
"engines": { "node": "0.10.22", "npm": "1.3.14" }
i think in case 2.x.x
isn't valid because log output shows modulus using 3.3.4
anyway.
-- jonathan
Comments
Post a Comment