kudu: npm install failed
Try to deploy from Git but npm install always fails:
2. Install npm packages
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "D:\\Program Files (x86)\\nodejs\\4.0.0\\node.exe" "D:\\Program Files (x86)\\npm\\2.14.2\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! path D:\home\site\repository\node_modules\gulp-uglify\node_modules\fancy-log\node_modules\dateformat\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules\number-is-nan\package.json.541f6c9b8df1f15f3ebad2a7c1111c43
npm ERR! code EINVAL
npm ERR! errno -4071
npm ERR! syscall rename
npm ERR! EINVAL: invalid argument, rename 'D:\home\site\repository\node_modules\gulp-uglify\node_modules\fancy-log\node_modules\dateformat\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules\number-is-nan\package.json.541f6c9b8df1f15f3ebad2a7c1111c43' -> 'D:\home\site\repository\node_modules\gulp-uglify\node_modules\fancy-log\node_modules\dateformat\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules\number-is-nan\package.json'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! D:\home\site\repository\npm-debug.log
Failed exitCode=-4071, command="D:\Program Files (x86)\nodejs\4.0.0\node.exe" "D:\Program Files (x86)\npm\2.14.2\node_modules\npm\bin\npm-cli.js" install
Try to execute npm install gulp-template -g
in Azure portal Console also get the same error.
> npm install gulp-template -g
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "D:\\Program Files (x86)\\nodejs\\4.0.0\\node.exe" "D:\\Program Files (x86)\\npm\\2.14.2\\node_modules\\npm\\bin\\npm-cli.js" "install" "gulp-template" "-g"
npm ERR! node v4.0.0
npm ERR! npm v2.14.2
npm ERR! path D:\local\AppData\npm\node_modules\gulp-template\node_modules\gulp-util\node_modules\dateformat\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules\number-is-nan\package.json.60095c333fa1cad462ac0401a5e3b3fb
npm ERR! code EINVAL
npm ERR! errno -4071
npm ERR! syscall rename
npm ERR! EINVAL: invalid argument, rename 'D:\local\AppData\npm\node_modules\gulp-template\node_modules\gulp-util\node_modules\dateformat\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules\number-is-nan\package.json.60095c333fa1cad462ac0401a5e3b3fb' -> 'D:\local\AppData\npm\node_modules\gulp-template\node_modules\gulp-util\node_modules\dateformat\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules\number-is-nan\package.json'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! D:\home\site\wwwroot\npm-debug.log
Here is my package.json:
{
"name": "my-project",
"private": true,
"description": "Foo bar",
"devDependencies": {
"bower": "^1.0.0",
"del": "^2.0.2",
"glob": "^5.0.14",
"gulp": "^3.0.0",
"gulp-angular-templatecache": "^1.7.0",
"gulp-autoprefixer": "^3.0.1",
"gulp-concat": "^2.6.0",
"gulp-minify-css": "^1.2.1",
"gulp-modify-css-urls": "^0.2.0",
"gulp-rename": "^1.2.2",
"gulp-rev": "^6.0.1",
"gulp-template": "^3.0.0",
"gulp-uglify": "^1.4.1",
"lodash": "^3.10.1"
}
}
I guess the file path is too so long that the rename operation failed. But the path has not reached 260 length. I’m not sure what’s going wrong…
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 18 (7 by maintainers)
Bam! sitching to NPM 3 fixed it - all working now… thanks a lot!