2016-08-30 2 views
0

Когда я запускаю 'npm install azure-storage', он добавляет папку azure-storage в мои node_modules, но у нее нет файлы в нем, только вложенные папки. Вот снимок экрана папки: Я пытаюсь установить azure-хранилище на удаленном сервере через консоль на Azure Portal и сталкиваться с проблемами

Сервер работает под управлением версия узла: v0.8.28 и НАЯ версия: 1.2.30

Вот стек Я получаю ошибку при запуске «НАЯ установка azure- хранение»

npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No readme data. 
npm WARN package.json [email protected] No readme data. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No readme data. 
npm WARN package.json [email protected] No readme data. 
npm WARN package.json [email protected] homepage field must be a string url. Deleted. 
npm WARN package.json [email protected] No readme data. 
npm http GET https://registry.npmjs.org/azure-storage 
npm http 200 https://registry.npmjs.org/azure-storage 
npm http GET https://registry.npmjs.org/azure-storage/-/azure-storage-1.3.0.tgz 
npm http 200 https://registry.npmjs.org/azure-storage/-/azure-storage-1.3.0.tgz 
npm http GET https://registry.npmjs.org/extend 
npm http GET https://registry.npmjs.org/browserify-mime 
npm http GET https://registry.npmjs.org/json-edm-parser/0.1.2 
npm http GET https://registry.npmjs.org/node-uuid 
npm http GET https://registry.npmjs.org/readable-stream 
npm http GET https://registry.npmjs.org/request 
npm http GET https://registry.npmjs.org/underscore 
npm http GET https://registry.npmjs.org/validator 
npm http GET https://registry.npmjs.org/xml2js/0.2.7 
npm http GET https://registry.npmjs.org/xmlbuilder/0.4.3 
npm http 200 https://registry.npmjs.org/node-uuid 
npm http 200 https://registry.npmjs.org/extend 
npm http 200 https://registry.npmjs.org/readable-stream 
npm http 200 https://registry.npmjs.org/browserify-mime 
npm http 200 https://registry.npmjs.org/underscore 
npm http 200 https://registry.npmjs.org/request 
npm http 200 https://registry.npmjs.org/validator 
npm http 200 https://registry.npmjs.org/xml2js/0.2.7 
npm http GET https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.7.tgz 
npm http GET https://registry.npmjs.org/extend/-/extend-1.2.1.tgz 
npm http GET https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz 
npm http GET https://registry.npmjs.org/validator/-/validator-3.22.2.tgz 
npm http GET https://registry.npmjs.org/request/-/request-2.74.0.tgz 
npm http GET https://registry.npmjs.org/xml2js/-/xml2js-0.2.7.tgz 
npm http 200 https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz 
npm http 200 https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.7.tgz 
npm http 200 https://registry.npmjs.org/extend/-/extend-1.2.1.tgz 
npm http 200 https://registry.npmjs.org/validator/-/validator-3.22.2.tgz 
npm http 200 https://registry.npmjs.org/xml2js/-/xml2js-0.2.7.tgz 
npm http 200 https://registry.npmjs.org/json-edm-parser/0.1.2 
npm http 200 https://registry.npmjs.org/xmlbuilder/0.4.3 
npm http GET https://registry.npmjs.org/json-edm-parser/-/json-edm-parser-0.1.2.tgz 
npm http 200 https://registry.npmjs.org/request/-/request-2.74.0.tgz 
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz 
npm http GET https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-0.4.3.tgz 
npm http 200 https://registry.npmjs.org/json-edm-parser/-/json-edm-parser-0.1.2.tgz 
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz 
npm http GET https://registry.npmjs.org/browserify-mime/-/browserify-mime-1.2.9.tgz 
npm http 200 https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-0.4.3.tgz 
npm http 200 https://registry.npmjs.org/browserify-mime/-/browserify-mime-1.2.9.tgz 
npm WARN engine [email protected]: wanted: {"node":">= 0.10"} (current: {"node":"v0.8.28","npm":"1.2.30"}) 
npm http GET https://registry.npmjs.org/jsonparse 
npm http 200 https://registry.npmjs.org/jsonparse 
npm http GET https://registry.npmjs.org/jsonparse/-/jsonparse-1.2.0.tgz 
npm http 200 https://registry.npmjs.org/jsonparse/-/jsonparse-1.2.0.tgz 
npm http GET https://registry.npmjs.org/sax/0.5.2 
npm http 200 https://registry.npmjs.org/sax/0.5.2 
npm http GET https://registry.npmjs.org/sax/-/sax-0.5.2.tgz 
npm http 200 https://registry.npmjs.org/sax/-/sax-0.5.2.tgz 
npm http GET https://registry.npmjs.org/core-util-is 
npm http GET https://registry.npmjs.org/inherits 
npm http GET https://registry.npmjs.org/isarray 
npm http GET https://registry.npmjs.org/process-nextick-args 
npm http GET https://registry.npmjs.org/string_decoder 
npm http GET https://registry.npmjs.org/util-deprecate 
npm http 200 https://registry.npmjs.org/core-util-is 
npm http 200 https://registry.npmjs.org/process-nextick-args 
npm http 200 https://registry.npmjs.org/string_decoder 
npm http 200 https://registry.npmjs.org/inherits 
npm http 200 https://registry.npmjs.org/isarray 
npm http 200 https://registry.npmjs.org/util-deprecate 
npm http GET https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz 
npm http GET https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz 
npm http GET https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz 
npm http GET https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz 
npm http GET https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz 
npm http GET https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz 
npm http 200 https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz 
npm http 200 https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz 
npm http 200 https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz 
npm http 200 https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz 
npm http 200 https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz 
npm http 200 https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz 
npm http GET https://registry.npmjs.org/aws-sign2 
npm http GET https://registry.npmjs.org/aws4 
npm http GET https://registry.npmjs.org/bl 
npm http GET https://registry.npmjs.org/caseless 
npm http GET https://registry.npmjs.org/combined-stream 
npm http GET https://registry.npmjs.org/forever-agent 
npm http GET https://registry.npmjs.org/form-data 
npm http GET https://registry.npmjs.org/har-validator 
npm http GET https://registry.npmjs.org/hawk 
npm http GET https://registry.npmjs.org/http-signature 
npm http GET https://registry.npmjs.org/is-typedarray 
npm http GET https://registry.npmjs.org/isstream 
npm http GET https://registry.npmjs.org/json-stringify-safe 
npm http GET https://registry.npmjs.org/mime-types 
npm http GET https://registry.npmjs.org/oauth-sign 
npm http GET https://registry.npmjs.org/stringstream 
npm http GET https://registry.npmjs.org/qs 
npm http GET https://registry.npmjs.org/tough-cookie 
npm http GET https://registry.npmjs.org/tunnel-agent 
npm http 200 https://registry.npmjs.org/aws-sign2 
npm http 200 https://registry.npmjs.org/caseless 
npm http 200 https://registry.npmjs.org/combined-stream 
npm http 200 https://registry.npmjs.org/bl 
npm http 200 https://registry.npmjs.org/aws4 
npm http 200 https://registry.npmjs.org/forever-agent 
npm http 200 https://registry.npmjs.org/har-validator 
npm http 200 https://registry.npmjs.org/form-data 
npm http 200 https://registry.npmjs.org/hawk 
npm http 200 https://registry.npmjs.org/is-typedarray 
npm http 200 https://registry.npmjs.org/http-signature 
npm http 200 https://registry.npmjs.org/isstream 
npm http 200 https://registry.npmjs.org/mime-types 
npm http 200 https://registry.npmjs.org/json-stringify-safe 
npm http 200 https://registry.npmjs.org/oauth-sign 
npm http 200 https://registry.npmjs.org/stringstream 
npm http 200 https://registry.npmjs.org/qs 
npm http 200 https://registry.npmjs.org/tough-cookie 
npm http 200 https://registry.npmjs.org/tunnel-agent 
npm http GET https://registry.npmjs.org/extend/-/extend-3.0.0.tgz 
npm http 200 https://registry.npmjs.org/extend/-/extend-3.0.0.tgz 
npm http GET https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz 
npm http GET https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz 
npm http GET https://registry.npmjs.org/bl/-/bl-1.1.2.tgz 
npm http GET https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz 
npm http GET https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz 
npm http GET https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz 
npm http GET https://registry.npmjs.org/form-data/-/form-data-1.0.1.tgz 
npm http GET https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz 
npm http GET https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz 
npm http GET https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz 
npm http 200 https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz 
npm http 200 https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz 
npm http GET https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz 
npm http GET https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz 
npm http 200 https://registry.npmjs.org/bl/-/bl-1.1.2.tgz 
npm http GET https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz 
npm http GET https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz 
npm http GET https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz 
npm http GET https://registry.npmjs.org/qs/-/qs-6.2.1.tgz 
npm http 200 https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz 
npm http GET https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.1.tgz 
npm http GET https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz 
npm http 200 https://registry.npmjs.org/form-data/-/form-data-1.0.1.tgz 
npm http 200 https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz 
npm http 200 https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz 
npm http 200 https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz 
npm http 200 https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz 
npm http 200 https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz 
npm http 200 https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz 
npm http 200 https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz 
npm http 200 https://registry.npmjs.org/qs/-/qs-6.2.1.tgz 
npm http 200 https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz 
npm http 200 https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz 
npm http 200 https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz 
npm http 200 https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.1.tgz 
npm http 200 https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz 
npm ERR! Error: EPERM, mkdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules' 
npm ERR! { [Error: EPERM, mkdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules'] 
npm ERR! errno: 50, 
npm ERR! code: 'EPERM', 
npm ERR! path: 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules', 
npm ERR! fstream_type: 'Directory', 
npm ERR! fstream_path: 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules\core-util-is', 
npm ERR! fstream_class: 'DirWriter', 
npm ERR! fstream_stack: 
npm ERR! [ 'D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\fstream\lib\writer.js:171:23', 
npm ERR! 'D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\mkdirp\index.js:37:53', 
npm ERR! 'Object.oncomplete (fs.js:302:15)' ] } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

npm ERR! System Windows_NT 6.2.9200 
npm ERR! command "node" "D:\Program Files (x86)\npm\1.2.30\node_modules\npm\bin\npm-cli.js" "install" "azure-storage" 
npm ERR! cwd D:\home\site\wwwroot 
npm ERR! node -v v0.8.28 
npm ERR! npm -v 1.2.30 
npm ERR! path D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules 
npm ERR! fstream_path D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules\core-util-is 
npm ERR! fstream_type Directory 
npm ERR! fstream_class DirWriter 
npm ERR! code EPERM 
npm ERR! errno 50 
npm ERR! stack Error: EPERM, mkdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules' 
npm ERR! fstream_stack D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\fstream\lib\writer.js:171:23 
npm ERR! fstream_stack D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\mkdirp\index.js:37:53 
npm ERR! fstream_stack Object.oncomplete (fs.js:302:15) 
npm ERR! Error: EPERM, mkdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules' 
npm ERR! { [Error: EPERM, mkdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules'] 
npm ERR! errno: 50, 
npm ERR! code: 'EPERM', 
npm ERR! path: 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules', 
npm ERR! fstream_type: 'Directory', 
npm ERR! fstream_path: 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules\isarray', 
npm ERR! fstream_class: 'DirWriter', 
npm ERR! fstream_stack: 
npm ERR! [ 'D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\fstream\lib\writer.js:171:23', 
npm ERR! 'D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\mkdirp\index.js:37:53', 
npm ERR! 'Object.oncomplete (fs.js:302:15)' ] } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

npm ERR! System Windows_NT 6.2.9200 
npm ERR! command "node" "D:\Program Files (x86)\npm\1.2.30\node_modules\npm\bin\npm-cli.js" "install" "azure-storage" 
npm ERR! cwd D:\home\site\wwwroot 
npm ERR! node -v v0.8.28 
npm ERR! npm -v 1.2.30 
npm ERR! path D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules 
npm ERR! fstream_path D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules\isarray 
npm ERR! fstream_type Directory 
npm ERR! fstream_class DirWriter 
npm ERR! code EPERM 
npm ERR! errno 50 
npm ERR! stack Error: EPERM, mkdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules' 
npm ERR! fstream_stack D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\fstream\lib\writer.js:171:23 
npm ERR! fstream_stack D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\mkdirp\index.js:37:53 
npm ERR! fstream_stack Object.oncomplete (fs.js:302:15) 
npm ERR! Error: EPERM, mkdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules' 
npm ERR! { [Error: EPERM, mkdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules'] 
npm ERR! errno: 50, 
npm ERR! code: 'EPERM', 
npm ERR! path: 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules', 
npm ERR! fstream_type: 'Directory', 
npm ERR! fstream_path: 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules\inherits', 
npm ERR! fstream_class: 'DirWriter', 
npm ERR! fstream_stack: 
npm ERR! [ 'D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\fstream\lib\writer.js:171:23', 
npm ERR! 'D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\mkdirp\index.js:37:53', 
npm ERR! 'Object.oncomplete (fs.js:302:15)' ] } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

npm ERR! System Windows_NT 6.2.9200 
npm ERR! command "node" "D:\Program Files (x86)\npm\1.2.30\node_modules\npm\bin\npm-cli.js" "install" "azure-storage" 
npm ERR! cwd D:\home\site\wwwroot 
npm ERR! node -v v0.8.28 
npm ERR! npm -v 1.2.30 
npm ERR! path D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules 
npm ERR! fstream_path D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules\inherits 
npm ERR! fstream_type Directory 
npm ERR! fstream_class DirWriter 
npm ERR! code EPERM 
npm ERR! errno 50 
npm ERR! stack Error: EPERM, mkdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules\readable-stream\node_modules' 
npm ERR! fstream_stack D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\fstream\lib\writer.js:171:23 
npm ERR! fstream_stack D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\mkdirp\index.js:37:53 
npm ERR! fstream_stack Object.oncomplete (fs.js:302:15) 
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules' 
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules'] 
npm ERR! error rolling back errno: 53, 
npm ERR! error rolling back code: 'ENOTEMPTY', 
npm ERR! error rolling back path: 'D:\home\site\wwwroot\node_modules\azure-storage\node_modules' } 
npm ERR! Error: No compatible version found: [email protected]'^1.2.1' 
npm ERR! Valid install targets: 
npm ERR! ["0.0.1","0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.1.10","0.1.12","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.4.0","0.4.1","0.4.2","0.5.0","0.5.1","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","1.2.0","1.2.1","1.3.1","1.3.2","1.4.0","1.4.1"] 
npm ERR! at installTargetsError (D:\Program Files (x86)\npm\1.2.30\node_modules\npm\lib\cache.js:719:10) 
npm ERR! at D:\Program Files (x86)\npm\1.2.30\node_modules\npm\lib\cache.js:641:10 
npm ERR! at saved (D:\Program Files (x86)\npm\1.2.30\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7) 
npm ERR! at Object.oncomplete (fs.js:302:15) 
npm ERR! If you need help, you may report this log at: 
npm ERR! http://github.com/isaacs/npm/issues 
npm ERR! or email it to: 
npm ERR! [email protected] 

npm ERR! System Windows_NT 6.2.9200 
npm ERR! command "node" "D:\Program Files (x86)\npm\1.2.30\node_modules\npm\bin\npm-cli.js" "install" "azure-storage" 
npm ERR! cwd D:\home\site\wwwroot 
npm ERR! node -v v0.8.28 
npm ERR! npm -v 1.2.30 
npm 

ответ

0

в моем тесте, он будет работать хорошо, если ваш node.js версия больше 0.10.29 которого НПМ версия должна быть больше, чем 1.4.10.

Вы можете изменить переменную WEBSITE_NODE_DEFAULT_VERSION в Параметры приложения, чтобы изменить версию node.js на сайте. enter image description here

В противном случае, вы можете изменить версию nodejs к 4.2.3, который является версией по умолчанию в среде Azure Web App, и который также содержит НУЮ версию выше 3. Npm в версии больше 3 может исправить несколько потенциальных проблем, например. имя пути слишком длинное в ОС Windows.