2015-08-10 10 views
5

पर विफल रहता है npm install चलाने पर हमारे Windows सर्वर का निर्माण, आदेश रुक-रुक करNPM बेतरतीब ढंग से स्थापित करने के लिए Windows

error errno: -4048, 
error code: 'EPERM', 
error path: 'C:\\Users\\bamboo\\AppData\\Roaming\\npm-cache\\readable-stream\\1.0.33\\package\\package.json', 
error parent: 'through2' } 
error Please try running this command again as root/Administrator. 

के साथ विफल भले ही आदेश एक आदेश प्रशासक के रूप में चल रहा है शीघ्र में एक प्रशासक के रूप निष्पादित किया जा रहा है। कमांड विफल होने वाला पैकेज प्रत्येक बार भिन्न होता है और अन्य विंडोज कंप्यूटरों में एक ही स्रोत के साथ npm install चलाते समय यह समस्या नहीं होती है।

मैंने npm cache clean को आजमाया है और सी: \ उपयोगकर्ता \% उपयोगकर्ता नाम% \ AppData \ npm-cache निर्देशिका की सामग्री को मैन्युअल रूप से हटाया है। मैंने एनपीएम-कैश निर्देशिका, नोडजेएस इंस्टॉल निर्देशिका, और स्रोत कोड चेकआउट वाली निर्देशिका की अनुमतियों की भी जांच की है और सभी दिखाते हैं कि व्यवस्थापक समूह की पूर्ण अनुमतियां हैं और व्यवस्थापक उपयोगकर्ता (जो npm install कमांड चला रहा है) निर्देशिका का मालिक है। मैंने एनपीएम (2.13.4) के नवीनतम संस्करण के साथ-साथ एक पुराने संस्करण (2.11.3) का भी प्रयास किया है।

इस अनुमति त्रुटि का कारण क्या है?

नीचे NPM-debug.log फ़ाइल की सामग्री है:

236980 info install [email protected] 
236981 info postinstall [email protected] 
236982 info install [email protected] 
236983 info postinstall [email protected] 
236984 verbose unlock done using C:\Users\bamboo\AppData\Roaming\npm-cache\_locks\npm-723363012edbbbaa.lock for c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\npm 
236985 verbose stack Error: EPERM, rename 'C:\Users\bamboo\AppData\Roaming\npm-cache\readable-stream\1.0.33\package\package.json' 
236985 verbose stack  at Error (native) 
236986 verbose cwd c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web 
236987 error Windows_NT 6.3.9600 
236988 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--msvs_version=2013" 
236989 error node v0.12.7 
236990 error npm v2.11.3 
236991 error path C:\Users\bamboo\AppData\Roaming\npm-cache\readable-stream\1.0.33\package\package.json 
236992 error code EPERM 
236993 error errno -4048 
236994 error Error: EPERM, rename 'C:\Users\bamboo\AppData\Roaming\npm-cache\readable-stream\1.0.33\package\package.json' 
236994 error  at Error (native) 
236994 error { [Error: EPERM, rename 'C:\Users\bamboo\AppData\Roaming\npm-cache\readable-stream\1.0.33\package\package.json'] 
236994 error errno: -4048, 
236994 error code: 'EPERM', 
236994 error path: 'C:\\Users\\bamboo\\AppData\\Roaming\\npm-cache\\readable-stream\\1.0.33\\package\\package.json', 
236994 error parent: 'through2' } 
236995 error Please try running this command again as root/Administrator. 
236996 verbose exit [ -4048, true ] 
236997 verbose unbuild node_modules\gulp-replace-task\node_modules\through2 
236998 info preuninstall [email protected] 
236999 info uninstall [email protected] 
237000 verbose unbuild rmStuff [email protected] from c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules 
237001 verbose unbuild rmStuff in c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\gulp-replace-task\node_modules 
237002 info postuninstall [email protected] 
237003 silly gentlyRm c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\gulp-replace-task\node_modules\through2 is being purged from base c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web 
237004 verbose gentlyRm don't care about contents; nuking c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\gulp-replace-task\node_modules\through2 
237005 silly vacuum-fs purging c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\gulp-replace-task\node_modules\through2 
237006 silly vacuum-fs quitting because other entries in c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\gulp-replace-task\node_modules 
237007 verbose unbuild node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate 
237008 info preuninstall [email protected] 
237009 info uninstall [email protected] 
237010 verbose unbuild rmStuff [email protected] from c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules 
237011 verbose unbuild rmStuff in c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules 
237012 info postuninstall [email protected] 
237013 silly gentlyRm c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate is being purged from base c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web 
237014 verbose gentlyRm don't care about contents; nuking c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate 
237015 silly vacuum-fs purging c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate 
237016 silly vacuum-fs quitting because other entries in c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules 
237017 verbose unbuild node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil 
237018 info preuninstall [email protected] 
237019 info uninstall [email protected] 
237020 verbose unbuild rmStuff [email protected] from c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules 
237021 verbose unbuild rmStuff in c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules 
237022 info postuninstall [email protected] 
237023 silly gentlyRm c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil is being purged from base c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web 
237024 verbose gentlyRm don't care about contents; nuking c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil 
237025 silly vacuum-fs purging c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil 
237026 silly vacuum-fs quitting because other entries in c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\browser-sync\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules 
237027 verbose unbuild node_modules\gulp-replace-task 
237028 info preuninstall [email protected] 
237029 info uninstall [email protected] 
237030 verbose unbuild rmStuff [email protected] from c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules 
237031 info postuninstall [email protected] 
237032 silly gentlyRm c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\gulp-replace-task is being purged from base c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web 
237033 verbose gentlyRm don't care about contents; nuking c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\gulp-replace-task 
237034 silly vacuum-fs purging c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules\gulp-replace-task 
237035 silly vacuum-fs quitting because other entries in c:\bamboo-home\xml-data\build-dir\SB-MB-JOB1\Web\node_modules 
+0

आपका एनपीएम संस्करण क्या है? – Eric

+0

मैंने 2.11.3 और 2.13.4 के साथ प्रयास किया है। – Brantino

+0

मैं एक ही समस्या में भाग रहा हूँ। हमने एनओएम 2.14.4 और नोड 4.1.2 के माध्यम से नोड और एनपीएम के कई संस्करणों की कोशिश की है। हमने प्रत्येक बिल्ड एजेंट के लिए एक अलग एनपीएम कैश बनाने का भी प्रयास किया। कोई भाग्य नहीं। –

उत्तर

0

मैं एक ही त्रुटि में runned ... मैं आप भी बांस का उपयोग कर देखते हैं। इसलिए। क्या आप बांस के लिए नोड.जेएस एडन का उपयोग कर रहे हैं? सेटिंग सेट करें -> एडॉन्स -> नए एडॉन्स खोजें।

कार्य सेटअप में "एनपीएम" टाइप करें और "उन्नत सेटिंग्स" टैब को अधिकतम करें चुनें। चुने "पृथक कैश का प्रयोग करें"। यह हो सकता है कि यह थोड़ा धीमा हो, क्योंकि इसे सब कुछ कैश में कॉपी करना है, लेकिन बांस आपके बांस घर डीआईआर में उस निर्देशिका को बना रहा है।

तब से मुझे यह त्रुटि नहीं मिलती है। मेरे लिए काम करता है

संबंधित मुद्दे