在安装生成器和gulp后运行 yo angular-fullstack 命令时出现此问题
I'm all done. Running npm install && bower install for you to install the requir
ed dependencies. If this fails, try running the command yourself.
npm WARN deprecated babel-preset-es2015@6.24.1: ? Thanks for using Babel: we re
commend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated gulp-jscs@3.0.2: JSCS is deprecated. Switch to ESLint.
npm WARN deprecated gulp-protractor@2.6.0: major security issue https://github.c
om/dominictarr/event-stream/issues/116 issue in v4.1.1
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Bro
wserslist >3.0 config used in other tools.
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated formatio@1.1.1: This package is unmaintained. Use @sinonjs/f
ormatio instead
npm WARN deprecated samsam@1.1.2: This package has been deprecated in favour of
@sinonjs/samsam
npm WARN deprecated jade@0.33.0: Jade has been renamed to pug, please install th
e latest version of pug instead of jade
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install th
e latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use
@segment/to-iso-string instead.
npm WARN deprecated gulp-header@1.8.2: Removed event-stream from gulp-header
npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, follo
wing the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated joi@6.10.1: This version is no longer maintained. Please upg
rade to the latest version.
npm WARN deprecated gulp-footer@1.0.5: Security vulnerability surrounding event-
stream, do *NOT* use.
npm WARN deprecated jscs-preset-wikimedia@1.0.1: Deprecated in favour of eslint-
config-wikimedia. -- https://phabricator.wikimedia.org/T118941
npm WARN deprecated samsam@1.1.3: This package has been deprecated in favour of
@sinonjs/samsam
npm WARN deprecated graceful-fs@2.0.3: please upgrade to graceful-fs 4 for compa
tibility with current and future versions of Node.js
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated transformers@2.0.1: Deprecated, use jstransformer
npm WARN deprecated constantinople@1.0.2: Please update to at least constantinop
le 3.1.1
npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please up
grade to the latest version.
npm WARN deprecated topo@1.1.0: This version is no longer maintained. Please upg
rade to the latest version.
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@n
pmjs.com for more info.
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie h
ttps://nodesecurity.io/advisories/130
npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Pleas
e upgrade to the latest version.
npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please up
grade to the latest version.
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for comp
atibility with current and future versions of Node.js
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compa
tibility with current and future versions of Node.js
npm WARN deprecated samsam@1.3.0: This package has been deprecated in favour of
@sinonjs/samsam
npm WARN deprecated text-encoding@0.6.4: no longer maintained
> v8-debug@0.7.7 preinstall C:\Users\Prakash\Roompapa\node_modules\v8-debug
> node -e 'process.exit(0)'
> v8-debug@0.7.7 install C:\Users\Prakash\Roompapa\node_modules\v8-debug
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.co
m/debug/v0.7.7/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@10.15
.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://node-inspector.s3.amazon
aws.com/debug/v0.7.7/node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@10.15
.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Warning: unrecognized setting VCCLCompilerTool/MultiProcessorCompilation
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
Error: project file 'C:\Users\Prakash\Roompapa\node_modules\v8-debug\build\de
bug.vcproj' was not found or not a valid project file.
The project consists entirely of configurations that require support for plat
forms which are not installed on this machine. The project cannot be loaded.
MSBUILD : error MSB6006: "VCBuild.exe" exited with code -1. [C:\Users\Prakash\R
oompapa\node_modules\v8-debug\build\binding.sln]
Error: project file 'C:\Users\Prakash\Roompapa\node_modules\v8-debug\build\de
bug.vcproj' was not found or not a valid project file.
The project consists entirely of configurations that require support for plat
forms which are not installed on this machine. The project cannot be loaded.
MSBUILD : error MSB6006: "VCBuild.exe" exited with code -1. [C:\Users\Prakash\R
oompapa\node_modules\v8-debug\build\binding.sln]
gyp gypERR! build error
ERR! gyp build error
ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` fa
iled with exit code: 1
gypgyp ERR!ERR! stackstack at ChildProcess.onExit (C:\Program Files\nodejs
\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with
exit code: 1
gypgyp ERR!ERR! stackstack at ChildProcess.emit (events.js:182:13)
at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\build.js:262:23)
gypgyp ERR!ERR! stackstack at Process.ChildProcess._handle.onexit (interna
l/child_process.js:240:12)
at ChildProcess.emit (events.js:182:13)
gyp gyp ERR! ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:240:12)
System Windows_NT 6.2.9200
gyp gyp ERR! ERR! System Windows_NT 6.2.9200
command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_m
odules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-bu
ild" "--module=C:\\Users\\Prakash\\Roompapa\\node_modules\\v8-debug\\build\\debu
g\\v0.7.7\\node-v64-win32-x64\\debug.node" "--module_name=debug" "--module_path=
C:\\Users\\Prakash\\Roompapa\\node_modules\\v8-debug\\build\\debug\\v0.7.7\\node
-v64-win32-x64"
gyp gypERR! ERR!command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Fil
es\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build"
"--fallback-to-build" "--module=C:\\Users\\Prakash\\Roompapa\\node_modules\\v8-
debug\\build\\debug\\v0.7.7\\node-v64-win32-x64\\debug.node" "--module_name=debu
g" "--module_path=C:\\Users\\Prakash\\Roompapa\\node_modules\\v8-debug\\build\\d
ebug\\v0.7.7\\node-v64-win32-x64"
cwd C:\Users\Prakash\Roompapa\node_modules\v8-debug
gypgyp ERR!ERR! cwdnode -v C:\Users\Prakash\Roompapa\node_modules\v8-debug
v10.15.0
gypgyp ERR!ERR! node -vnode-gyp -v v10.15.0
v3.8.0
gyp gyp ERR! ERR! node-gyp -v v3.8.0
not ok
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.e
xe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.j
s build --fallback-to-build --module=C:\Users\Prakash\Roompapa\node_modules\v8-d
ebug\build\debug\v0.7.7\node-v64-win32-x64\debug.node --module_name=debug --modu
le_path=C:\Users\Prakash\Roompapa\node_modules\v8-debug\build\debug\v0.7.7\node-
v64-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\Prakash\Roompa
pa\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi
ld_process.js:251:5)
node-pre-gyp ERR! System Windows_NT 6.2.9200
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Prak
ash\\Roompapa\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallb
ack-to-build"
node-pre-gyp ERR! cwd C:\Users\Prakash\Roompapa\node_modules\v8-debug
node-pre-gyp ERR! node -v v10.15.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node
_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --m
odule=C:\Users\Prakash\Roompapa\node_modules\v8-debug\build\debug\v0.7.7\node-v6
4-win32-x64\debug.node --module_name=debug --module_path=C:\Users\Prakash\Roompa
pa\node_modules\v8-debug\build\debug\v0.7.7\node-v64-win32-x64' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fse
vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-debug@0.7.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug@0.7.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Prakash\AppData\Roaming\npm-cache\_logs\2019-01-23T16_55_0
8_217Z-debug.log
bower ENOGIT git is not installed or not in the PATH
_-----_ ?───────────────────────?
| | │ Bye from us! │
|--(o)--| │ Chat soon. │
`---------' │ Yeoman team │
( _'U`_ ) │ http://yeoman.io │
/___A___\ /?───────────────────────?
| ~ |
__'.___.'__
' ` |° ' Y `
我不太担心过时的问题,因为我使用的是旧版的yo,gulp和generator。但是主要问题出现在
之后node-pre-gyp install --fallback-to-build
在命令提示符下输入行。 我还尝试清除phantomjs高速缓存文件夹,因为它是使用最后一次验证的配置重复使用的,但事实并非如此。 我已经在网络上查询了此问题,但是找不到任何可接受的解决方案。 我使用的版本如下
windows 8
gulp@3.9.0
yo@2.0.5
generator-angular-fullstack@3.7.6
yo-rc.json文件如下
{
"generator-angular-fullstack": {
"generatorVersion": "3.7.6",
"endpointDirectory": "server/api/",
"insertRoutes": true,
"registerRoutesFile": "server/routes.js",
"routesNeedle": "// Insert routes below",
"routesBase": "/api/",
"pluralizeRoutes": true,
"insertSockets": true,
"registerSocketsFile": "server/config/socketio.js",
"socketsNeedle": "// Insert sockets below",
"insertModels": true,
"registerModelsFile": "server/sqldb/index.js",
"modelsNeedle": "// Insert models below",
"filters": {
"js": true,
"babel": true,
"flow": false,
"html": true,
"css": true,
"uirouter": true,
"bootstrap": true,
"uibootstrap": true,
"socketio": true,
"auth": true,
"models": true,
"mongooseModels": true,
"mongoose": true,
"gulp": true,
"mocha": true,
"jasmine": false,
"should": false,
"expect": true
}
},
"generator-ng-component": {
"routeDirectory": "client/app/",
"directiveDirectory": "client/app/",
"componentDirectory": "client/app/components/",
"filterDirectory": "client/app/",
"serviceDirectory": "client/app/",
"basePath": "client",
"moduleName": "",
"modulePrompt": true,
"filters": [
"uirouter",
"mocha",
"expect",
"uirouter",
"es6"
],
"extensions": [
"babel",
"js",
"html",
"css"
],
"directiveSimpleTemplates": "",
"directiveComplexTemplates": "",
"filterTemplates": "",
"serviceTemplates": "",
"factoryTemplates": "",
"controllerTemplates": "",
"componentTemplates": "",
"decoratorTemplates": "",
"providerTemplates": "",
"routeTemplates": ""
}
}
也由于某些未知(但可能是微不足道的)原因,在我执行此命令之前运行此命令
C:\Users\Prakash\Roompapa>gulp --version
[23:06:27] CLI version 2.0.1
[23:06:27] Local version 3.9.0
但是,在运行有角度的全栈后,我得到了
C:\Users\Prakash\Roompapa>gulp --version
[23:06:37] Failed to load external module @babel/register
[23:06:37] Requiring external module babel-register
[23:06:37] CLI version 2.0.1
[23:06:37] Local version 3.9.1