- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我在 Win 7 上使用 VS 2017 和 .NET Core 2。尝试使用 these instructions 在 .NET Core 2.0 和 Angular 中创建一个新的应用程序.
运行最新版本的 Node 和 npm :
node -v > v10.1.0
npm -v > v6.0.1
根据说明,我继续构建应用程序并获得
找不到 Python
我检查了路径中有 python 的环境变量。不确定为什么找不到它。
构建似乎“成功了一半”,并且对一些依赖项进行了排序。第二次构建应用程序给了我一个 JavaScript 运行时错误。我认为这是由于糟糕的第一次构建工作。
我还尝试在 ClientApp 文件夹中运行“npm install”,但出现了同样的错误,找不到 python
。
如有任何帮助,我们将不胜感激!
构建日志
1>------ Build started: Project: TestApp, Configuration: Debug Any CPU ------
1>TestApp -> C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\bin\Debug\netcoreapp2.0\TestApp.dll
1>v10.1.0
1>Restoring dependencies using 'npm'. This may take several minutes...
1>
1>> uws@9.14.0 install C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\uws
1>> node-gyp rebuild > build_log.txt 2>&1 || exit 0
1>
1>
1>> node-sass@4.7.2 install C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\node-sass
1>> node scripts/install.js
1>
1>Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-64_binding.node
1>Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-64_binding.node":
1>
1>HTTP error 404 Not Found
1>
1>Hint: If github.com is not accessible in your location
1> try setting a proxy via HTTP_PROXY, e.g.
1>
1> export HTTP_PROXY=http://example.com:1234
1>
1>or configure npm proxy via
1>
1> npm config set proxy http://example.com:8080
1>
1>> uglifyjs-webpack-plugin@0.4.6 postinstall C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\webpack\node_modules\uglifyjs-webpack-plugin
1>> node lib/post_install.js
1>
1>
1>> node-sass@4.7.2 postinstall C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\node-sass
1>> node scripts/build.js
1>
1>Building: C:\Program Files\nodejs\node.exe C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
1>gyp info it worked if it ends with ok
1>gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
1>gyp verb cli 'C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\node-gyp\\bin\\node-gyp.js',
1>gyp verb cli 'rebuild',
1>gyp verb cli '--verbose',
1>gyp verb cli '--libsass_ext=',
1>gyp verb cli '--libsass_cflags=',
1>gyp verb cli '--libsass_ldflags=',
1>gyp verb cli '--libsass_library=' ]
1>gyp info using node-gyp@3.6.2
1>gyp info using node@10.1.0 | win32 | x64
1>gyp verb command rebuild []
1>gyp verb command clean []
1>gyp verb clean removing "build" directory
1>gyp verb command configure []
开始失败......
1>gyp verb check python checking for Python executable "python2" in the PATH
1>EXEC : gyp verb `which` failed error : not found: python2
1>gyp verb `which` failed at getNotFoundError (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:13:12)
1>gyp verb `which` failed at F (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:68:19)
1>gyp verb `which` failed at E (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:80:29)
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:89:16
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\isexe\index.js:42:5
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\isexe\windows.js:36:5
1>gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:165:21)
1>EXEC : gyp verb `which` failed python2 { error : not found: python2
1>gyp verb `which` failed at getNotFoundError (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:13:12)
1>gyp verb `which` failed at F (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:68:19)
1>gyp verb `which` failed at E (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:80:29)
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:89:16
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\isexe\index.js:42:5
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\isexe\windows.js:36:5
1>gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:165:21)
1>gyp verb `which` failed stack: 'Error: not found: python2\n at getNotFoundError (C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\which\\which.js:13:12)\n at F (C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\which\\which.js:68:19)\n at E (C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\which\\which.js:80:29)\n at C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\which\\which.js:89:16\n at C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\isexe\\index.js:42:5\n at C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:165:21)',
1>gyp verb `which` failed code: 'ENOENT' }
1>gyp verb check python checking for Python executable "python" in the PATH
1>EXEC : gyp verb `which` failed error : not found: python
1>gyp verb `which` failed at getNotFoundError (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:13:12)
1>gyp verb `which` failed at F (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:68:19)
1>gyp verb `which` failed at E (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:80:29)
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:89:16
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\isexe\index.js:42:5
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\isexe\windows.js:36:5
1>gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:165:21)
1>EXEC : gyp verb `which` failed python { error : not found: python
1>gyp verb `which` failed at getNotFoundError (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:13:12)
1>gyp verb `which` failed at F (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:68:19)
1>gyp verb `which` failed at E (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:80:29)
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\which\which.js:89:16
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\isexe\index.js:42:5
1>gyp verb `which` failed at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\isexe\windows.js:36:5
1>gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:165:21)
1>gyp verb `which` failed stack: 'Error: not found: python\n at getNotFoundError (C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\which\\which.js:13:12)\n at F (C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\which\\which.js:68:19)\n at E (C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\which\\which.js:80:29)\n at C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\which\\which.js:89:16\n at C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\isexe\\index.js:42:5\n at C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:165:21)',
1>gyp verb `which` failed code: 'ENOENT' }
1>gyp verb could not find "python". checking python launcher
1>gyp verb could not find "python". guessing location
1>gyp verb ensuring that file exists: C:\Python27\python.exe
1>gyp ERR! configure error
1>EXEC : gyp ERR! stack error : Can't find Python executable "python", you can set the PYTHON env variable.
1>gyp ERR! stack at PythonFinder.failNoPython (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\node-gyp\lib\configure.js:483:19)
1>gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\node-gyp\lib\configure.js:508:16)
1>gyp ERR! stack at C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\graceful-fs\polyfills.js:284:29
1>gyp ERR! stack at FSReqWrap.oncomplete (fs.js:165:21)
1>gyp ERR! System Windows_NT 6.1.7601
1>gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mohammadrauf\\Desktop\\Angular_Projects\\TestApp\\ClientApp\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
1>gyp ERR! cwd C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\node-sass
1>gyp ERR! node -v v10.1.0
1>gyp ERR! node-gyp -v v3.6.2
1>gyp ERR! not ok
1>EXEC : Build failed with error code: 1
1>npm WARN rollback Rolling back y18n@3.2.1 failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\Users\mohammadrauf\Desktop\Angular_Projects\TestApp\ClientApp\node_modules\yargs\node_modules'
1>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.7.2 (node_modules\node-sass):
1>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.7.2 postinstall: `node scripts/build.js`
1>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
1>
1>added 1218 packages from 1231 contributors in 93.516s
1>[!] 33 vulnerabilities found [6676 packages audited]
1> Severity: 3 Low | 21 Moderate | 9 High
1> Run `npm audit` for more detail
最佳答案
node-gyp
依赖于 Python2.x
。 Install Python
in your system .
从 here 中检查所需的依赖项
关于python - .NET Core 2.0 和 Angular 初始应用程序构建失败 - 找不到 python 后跟 JavaScript 运行时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50486628/
我想拦截以\*#\*开头的字符串 后跟一个 0 到 7 之间的数字 并以:##结尾 所以像\*#\*0## 但是我找不到这个的正则表达式 最佳答案 假设你想允许只有一个 # 之前和两个之后,我会这样做
在阅读 C# 代码时,我发现了一个相当奇怪的片段: if( whatever is IDisposable) { (whatever as IDisposable).Dispose(); } 我宁
我在看别人的框架代码,我发现其中一个函数的参数接受了一个输入,输入后面跟着(.),当我检查输入的类型时,我发现它是一个结构不是枚举,这让我很困惑 这是函数的屏幕截图,输入看起来像一个枚举案例: 参数的
我对地址运算符后跟解引用运算符的行为有疑问。 让我们看一下表达式 &*p,其中 p 的类型为 int *。 C11 标准(第 6.5.3.2 节)说: The unary & operator yie
在我的团队中,我经常看到队友在写作 list.filter(_.isInstanceOf[T]).map(_.asInstanceOf[T]) 但这对我来说似乎有点多余。 如果我们知道过滤列表中的所有
请帮我解决这个问题。我已经尝试过删除和重新创建数据文件、刷新表、重新启动数据库和整个服务器。 InnoDB 处于 Force Recovery = 4 >mysql -u root Welcome t
如何使用 Swift3 在 UILabel 末尾添加 UIButton,就像阅读更多一样? 我已经使用 Storyboard创建了 UILabel 和 UIButton。 我不想使用任何 Pod
所以我即将将我的服务器迁移到新机器。我在新机器上安装较新版本的mysql 5.7.13,而旧版本的mysql 5.5.13。有一个查询不像以前那样工作与之前的服务器数据相同 select * fr
在 Andrei Alexandrescu 关于错误处理的演讲中: 见 C++ and Beyond 2012: Andrei Alexandrescu - Systematic Error Hand
我指的是本教程 http://www.tldp.org/LDP/abs/html/sha-bang.html#AEN226在 bash 上进一步提高我的知识,但我似乎无法使用网站中提到的脚本命令删除我
我正在尝试为允许 string 的对象编写类型s 作为键和 function s 带有任意数量的参数,后跟作为值的回调。 // non working dummy code type MyObject
我刚刚用 c 语言编写了一个使用命令行参数的程序,我试图打印第一个参数。当我使用以下命令执行程序时 ./a.out $23 并尝试使用下面的代码打印第一个参数 printf("%s", argv[1]
申请 UILongPressGestureRecongnizer一方面, 检查下面的代码以供引用.. @interface ViewController () { UIRotationGes
我正在使用 MPI 和 C 进行编程,并且使用根等级从文件中读取数据,然后将其分发到其余等级。我的 MPI_Scatter 工作正常,我打印出这些值以确保它们是正确的(而且确实如此)。我的问题是,分配
每当“Tskb”作为单个单词出现时,我必须使用 Java 正则表达式将“Tskb”转换为“TsKB”。我写了下面不起作用的代码。 public class TestBGR { priv
我有下面的代码(注意,我稍后会在循环中添加更多代码,但我需要它先工作): var calls_on = true; function hunt(max, ext, duration){ if(
在我的非根 VC 类中,我有以下 doLogout 方法: - (void)doLogout { SDPAppDelegate *app = [self getAppDelegate];
我的数据库中有很多地址。示例:1199 国道 218 我想选择起始数字,后跟第一个单词,并忽略地址的其余部分。所以我想通过调用这个来检索地址:1199 State 感谢您的帮助 最佳答案 如果您运行的
我正在创建一些客户端套接字软件来从服务器读取事件。 (例如,流媒体股票报价)。 问题: .read(b); 立即返回值-1。这会导致无限循环,手机会变得很热。此外,对 s.isConnected()、
我这里有这段代码: var fields = row.split(/regex goes here/); 我想在每次出现时分割行 | 但不是 *| 如何编写这个简单的正则表达式。我认为有一个不是字符,
我是一名优秀的程序员,十分优秀!