I just checkout ng2-bootstrap try to build ng2-bootstarp itself and could not run npm install.
Can u update contributor development guide to start and test?
D:\RNDA\AngulerJS\ishara\ng2-bootstrap>npm install
node-zopfli.4.0 install D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v47-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli.4.0 and node.10.1 (node-v47 ABI) (falling back to source compile with node-gyp)
D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli>if not defined npm_config_node_gyp (node "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" clean ) else (node "" clean )
D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli>if not defined npm_config_node_gyp (node "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64 ) else (node "" configure --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64 )
D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli>if not defined npm_config_node_gyp (node "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" build --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64 ) else (node "" build --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the compon
ent to the system path if it is installed elsewhere. [D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error:
1 | C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe |
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node" "--module_name=zopfli" "--module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64"
gyp ERR! cwd D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli
gyp ERR! node -v v5.10.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:100:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:185:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:850:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Windows_NT 10.0.10240
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli
node-pre-gyp ERR! node -v v5.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd build --fallback-to-build --module=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64\zopfli.node --module_name=zopfli --module_path=D:\RNDA\AngulerJS\ishara\ng2-bootstrap\node_modules\node-zopfli\lib\binding\node-v47-win32-x64' (1)
npm WARN install:node-zopfli.4.0 node-zopfli.4.0 install:
1 | node-pre-gyp install --fallback-to-build |
npm WARN install:node-zopfli.4.0 Exit status 1
ng2-bootstrap.0.16 prepublish D:\RNDA\AngulerJS\ishara\ng2-bootstrap
npm run flow.clean && npm run flow.compile
ng2-bootstrap.0.16 flow.clean D:\RNDA\AngulerJS\ishara\ng2-bootstrap
del bundles coverage demo-build typings "components/*/.+(js|d.ts|js.map)" dist "ng2-bootstrap.+(js|d.ts|js.map)"
Could Not Find D:\RNDA\AngulerJS\ishara\ng2-bootstrap\bundles
D:\RNDA\AngulerJS\ishara\ng2-bootstrap\demo-build*, Are you sure (Y/N)? y
Could Not Find D:\RNDA\AngulerJS\ishara\ng2-bootstrap\typings
The filename, directory name, or volume label syntax is incorrect.
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "flow.clean"
npm ERR! node v5.10.1
npm ERR! npm v3.8.3
npm ERR! code ELIFECYCLE
npm ERR! ng2-bootstrap.0.16 flow.clean:
1 | del bundles coverage demo-build typings "components/**/*.+(js|d.ts|js.map)" dist "ng2-bootstrap.+(js|d.ts|js.map)" |
npm ERR! Exit status 123
npm ERR!
npm ERR! Failed at the ng2-bootstrap.0.16 flow.clean script 'del bundles coverage demo-build typings "components//*.+(js|d.ts|js.map)" dist "ng2-bootstrap.+(js|d.ts|js.map)"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-bootstrap package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! del bundles coverage demo-build typings "components//*.+(js|d.ts|js.map)" dist "ng2-bootstrap.+(js|d.ts|js.map)"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-bootstrap
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-bootstrap
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\RNDA\AngulerJS\ishara\ng2-bootstrap\npm-debug.log
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents.0.12
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\ishara\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v5.10.1
npm ERR! npm v3.8.3
npm ERR! code ELIFECYCLE
npm ERR! ng2-bootstrap.0.16 prepublish:
1 | npm run flow.clean && npm run flow.compile |
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ng2-bootstrap.0.16 prepublish script 'npm run flow.clean && npm run flow.compile'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-bootstrap package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run flow.clean && npm run flow.compile
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-bootstrap
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-bootstrap
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\RNDA\AngulerJS\ishara\ng2-bootstrap\npm-debug.log
该提问来源于开源项目:valor-software/ngx-bootstrap
Cheers for picking up my mistake