Error during "npm install -g strongloop"
Hi, i cant seem to figure out why i cant successfully install the strongloop module. I have python installed and can run the python command without issues. I'm also running the commands with admin rights. Here is my npm error log
> [email protected] install C:\Users\Janer\AppData\Roaming\npm\node_modules\strongloop\node_modules\strong-supervisor\node_modules\node-syslog
> node-gyp rebuild
C:\Users\Janer\AppData\Roaming\npm\node_modules\strongloop\node_modules\strong-supervisor\node_modules\node-syslog>node "C:\node\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:988:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:779:34)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\node\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Janer\AppData\Roaming\npm\node_modules\strongloop\node_modules\strong-supervisor\node_modules\node-syslog
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/lynx
npm http 304 https://registry.npmjs.org/cycle
npm http 304 https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/verror/1.1.0
npm http 304 https://registry.npmjs.org/keypress
this seems to happen about 10 to 15 times during the install processes causing it to fail completely. Any ideas why i'm experiencing this?
I'm running Windows7.
I met the below error on platform win7 without python, I had no find it need python.needn't it?
npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, chmod 'C:\Users\happysky\AppData\Roaming\npm\node_modu s\strongloop\node_modules\prompt\node_modules\winston\test\logger-test.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop" npm ERR! cwd C:\Windows\system32 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no _modules\prompt\node_modules\winston\test\logger-test.js npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron oop\node_modules\prompt\node_modules\winston\test\logger-test.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call chmod npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:305:19 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\happysky\AppData\Roaming\npm\node_modu s\strongloop\node_modules\loopback-sdk-angular-cli\node_modules\express\node_m ules\proxy-addr\node_modules\ipaddr.js\ipaddr.min.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop" npm ERR! cwd C:\Windows\system32 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no _modules\loopback-sdk-angular-cli\node_modules\express\node_modules\proxy-addr ode_modules\ipaddr.js\ipaddr.min.js npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron oop\node_modules\loopback-sdk-angular-cli\node_modules\express\node_modules\pr y-addr\node_modules\ipaddr.js\ipaddr.min.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, chmod 'C:\Users\happysky\AppData\Roaming\npm\node_modu s\strongloop\node_modules\strong-pm\node_modules\strong-service-install\node_m ules\strong-service-upstart\upstart-1.4.conf.jst' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop" npm ERR! cwd C:\Windows\system32 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no _modules\strong-pm\node_modules\strong-service-install\node_modules\strong-ser ce-upstart\upstart-1.4.conf.jst npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron oop\node_modules\strong-pm\node_modules\strong-service-install\node_modules\st ng-service-upstart\upstart-1.4.conf.jst npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call chmod npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:305:19 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, open 'C:\Users\happysky\AppData\Roaming\npm\node_modul \strongloop\node_modules\strong-registry\node_modules\inquirer\node_modules\cl color\lib\index.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n
ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no
_modules\strong-registry\node_modules\inquirer\node_modules\cli-color\lib\inde
js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! EEXIST, mkdir 'C:\Users\happysky\AppData\Roaming\npm\node_modules\str
gloop\node_modules\loopback-sdk-angular-cli\node_modules\express\node_modules
nd\node_modules\mime'
File exists: C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\nod
modules\loopback-sdk-angular-cli\node_modules\express\node_modules\send\node_m
ules\mime
Move it away, and try again.
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop" npm ERR! cwd C:\Windows\system32 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no modules\loopback-sdk-angular-cli\node_modules\express\node_modules\send\node dules\mime npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron oop\node_modules\loopback-sdk-angular-cli\node_modules\express\node_modules\se \node_modules\mime\test.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code EEXIST npm ERR! errno 47 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:171:23 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\m irp\index.js:37:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\happysky\AppData\Roaming\npm\node_modu s\strongloop\node_modules\npm\doc\files\package.json.md' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop" npm ERR! cwd C:\Windows\system32 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no _modules\npm\doc\files\package.json.md npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron oop\node_modules\npm\doc\files\package.json.md npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\happysky\AppData\Roaming\npm\node_modu s\strongloop\node_modules\loopback-workspace\node_modules\loopback\docs\assets xplorer-req-res.png' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop" npm ERR! cwd C:\Windows\system32 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no _modules\loopback-workspace\node_modules\loopback\docs\assets\explorer-req-res ng npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron oop\node_modules\loopback-workspace\node_modules\loopback\docs\assets\explorer eq-res.png npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\happysky\AppData\Roaming\npm\node_modu s\strongloop\node_modules\strong-registry\node_modules\bluebird\js\main\promis js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop" npm ERR! cwd C:\Windows\system32 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no _modules\strong-registry\node_modules\bluebird\js\main\promise.js npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron oop\node_modules\strong-registry\node_modules\bluebird\js\main\promise.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\happysky\AppData\Roaming\npm\node_modu s\strongloop\node_modules\loopback-sdk-angular-cli\node_modules\docular\lib\an lar\js\ng\parse.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n
ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop"
npm ERR! cwd C:\Windows\system32
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no
modules\loopback-sdk-angular-cli\node_modules\docular\lib\angular\js\ng\parse
s
npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron
oop\node_modules\loopback-sdk-angular-cli\node_modules\docular\lib\angular\js
\parse.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f
ream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added
Use emitter.setMaxListeners() to increase limit.
Trace
at process.addListener (events.js:160:15)
at process.on.process.addListener (node.js:773:26)
at spinner (C:\Program Files\nodejs\node_modules\npm\node_modules\char-spi
er\spin.js:35:13)
at Object.npm.spinner.start (C:\Program Files\nodejs\node_modules\npm\lib
m.js:172:25)
at Object.commandCache.(anonymous function) (C:\Program Files\nodejs\node
dules\npm\lib\npm.js:202:19)
at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:289:18
at c (C:\Program Files\nodejs\node_modules\npm\lib\cache.js:129:12)
at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:145:5
at process._tickCallback (node.js:419:13)
npm ERR! Error: ENOENT, lstat 'C:\Users\happysky\AppData\Roaming\npm\node_modu
s\strongloop\node_modules\generator-loopback\example\templates\server\sample-d
a\inventory.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop" npm ERR! cwd C:\Windows\system32 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no _modules\generator-loopback\example\templates\server\sample-data\inventory.jso npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron oop\node_modules\generator-loopback\example\templates\server\sample-data\inven ry.json npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\happysky\AppData\Roaming\npm\node_modu s\strongloop\node_modules\strong-build\node_modules\lodash\dist\lodash.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\n ejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "strongloop" npm ERR! cwd C:\Windows\system32 npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path C:\Users\happysky\AppData\Roaming\npm\node_modules\strongloop\no _modules\strong-build\node_modules\lodash\dist\lodash.js npm ERR! fstream_path C:\Users\happysky\AppData\Roaming\npm\node_modules\stron oop\node_modules\strong-build\node_modules\lodash\dist\lodash.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\f ream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Windows\system32\npm-debug.log npm ERR! not ok code 0
@xinshouke funny thing is i repeated this same process on MAC OS and on Win8 and it installed without qualms. Win7 seems to have file write issues.
@bigmeech oh, I install it on Centos successfully just now, seems that I needn't repeat the issue on Mac OS ,hehe.
Same here, I have errors when I try to install it. On Mac OS.
@amoussard try the command "sudo npm install -g strongloop" on MAC OS, I install it successfully
@bigmeech Hi, I had the same problem on Windows 7 too. This was due to a problem with VCBuild.exe. You must install Visual Studio (like 2010) and add VCBuild.exe in your Path. Maybe it can help you.
@bigmeech Has the issue been resolved? Can I close it?
@superkhau I doubt that others face this issue at the moment, others maybe
One could maybe cherry pick the comment for https://github.com/strongloop/loopback/issues/506#issuecomment-54684498 , and see if something like it is present in the documentation
"not bug" ?
@OwenBrotherwood You're right, this should be marked as triage + waiting instead of bug. Updated. I don't think this is an issue ATM either, but just making sure all parties had a chance to speak before closing this prematurely.
This is still an issue. Doesn't work on Windows 7. Asking for Visual Studio.
\npm\node_modules\strongloop\node_modules\strong-arc\node_modules\strong-pm\node_modules\strong-supervisor\node_modules\heapdump\build\binding.sln : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) ins tall Microsoft Visual Studio 2008.
@balajicheenu Please read the requirements. It needs what it is asking for https://docs.strongloop.com/display/SL/Installing+Node+and+StrongLoop+on+Windows#InstallingNodeandStrongLooponWindows-Installprerequisites
@superkhau You should probably close this as, after installing strongloop many times on Windows (different versions) there are not the problems indicated.
@balajicheenu Did you do the things outlined in the error? I assume you need the Visual C++ component installed.
I'm going to close this, please reopen if you guys are still running into issues.