为什么昨天还好好的angular,今天就会报各种错了?

发布于 2022-09-07 00:20:40 字数 7189 浏览 14 评论 0

clipboard.png

clipboard.png
各种报错,很是无语!!!!!~
求大佬帮下忙,解决一下~,谢了
git: https://github.com/yyccQQu/04... dev分支上

        warning Error running install script for optional dependency: "E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-sass: Command failed.
Exit code: 1
Command: C:\\WINDOWS\\system32\\cmd.exe
Arguments: /d /s /c node scripts/build.js
Directory: E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-sass
Output:
Binary found at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-sass\\vendor\\win32-x64-57\\binding.node
Testing binary
Binary has a problem: Error: \\\\?\\E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-sass\\vendor\\win32-x64-57\\binding.node is not a valid Win32 application\\\\?\\E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-sass\\vendor\\win32-x64-57\\binding.node
    at Object.Module._extensions..node (module.js:664:18)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at module.exports (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-sass\\lib\\binding.js:19:10)
    at Object.<anonymous> (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-sass\\lib\\index.js:14:35)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
Building the binary locally
Building: F:\\gongju\
ode.exe E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-gyp\\bin\
ode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'F:\\\\gongju\\\
ode.exe',
gyp verb cli   'E:\\\\前端\\\
g2\\\\999\\\\PPP\\\\0405newNg\\\\my-app\\\
ode_modules\\\
ode-gyp\\\\bin\\\
ode-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using node-gyp@3.6.2
gyp info using node@8.9.3 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing \"build\" directory
gyp verb command configure []
gyp verb download using dist-url https://npm.taobao.org/dist
gyp verb check python checking for Python executable \"python2\" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:13:12)
gyp verb `which` failed     at F (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:68:19)
gyp verb `which` failed     at E (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:80:29)
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:89:16
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\isexe\\index.js:42:5
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\isexe\\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:13:12)
gyp verb `which` failed     at F (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:68:19)
gyp verb `which` failed     at E (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:80:29)
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:89:16
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\isexe\\index.js:42:5
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\isexe\\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21) code: 'ENOENT' }
gyp verb check python checking for Python executable \"python\" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed     at getNotFoundError (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:13:12)
gyp verb `which` failed     at F (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:68:19)
gyp verb `which` failed     at E (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:80:29)
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:89:16
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\isexe\\index.js:42:5
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\isexe\\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed  python { Error: not found: python
gyp verb `which` failed     at getNotFoundError (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:13:12)
gyp verb `which` failed     at F (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:68:19)
gyp verb `which` failed     at E (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:80:29)
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\which\\which.js:89:16
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\isexe\\index.js:42:5
gyp verb `which` failed     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\isexe\\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21) code: 'ENOENT' }
gyp verb could not find \"python\". checking python launcher
gyp verb could not find \"python\". guessing location
gyp verb ensuring that file exists: C:\\Python27\\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable \"python\", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-gyp\\lib\\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-gyp\\lib\\configure.js:508:16)
gyp ERR! stack     at E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\\graceful-fs\\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command \"F:\\\\gongju\\\
ode.exe\" \"E:\\\\前端\\\
g2\\\\999\\\\PPP\\\\0405newNg\\\\my-app\\\
ode_modules\\\
ode-gyp\\\\bin\\\
ode-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"
gyp ERR! cwd E:\\前端\
g2\\999\\PPP\\0405newNg\\my-app\
ode_modules\
ode-sass
gyp ERR! node -v v8.9.3
Done in 164.26s.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱冒险 2022-09-14 00:20:40

MdInputModule似乎又问题吧,这个错误信息其实看不出什么

琴流音 2022-09-14 00:20:40

包错误,重新安装最开始的包就行了。node_modules里面的包感觉很不稳定!!!!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文