Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js '';无法识别为内部或外部命令(在为firebaseUI运行npm安装时)_Node.js_Angular_Firebase_Npm_Npm Install - Fatal编程技术网

Node.js '';无法识别为内部或外部命令(在为firebaseUI运行npm安装时)

Node.js '';无法识别为内部或外部命令(在为firebaseUI运行npm安装时),node.js,angular,firebase,npm,npm-install,Node.js,Angular,Firebase,Npm,Npm Install,我无法在firebaseUI演示应用程序上安装npm软件包。 我克隆了github上的主分支,只是尝试运行“npm安装”,但我遇到了一个错误,我从未在node package manager中遇到过。我明白了 '.' is not recognized as an internal or external command 我还尝试了这个将cygwin64,并得到了完全相同的结果。下面是错误,下面是my package.json firebaseui@3.3.0 generate-test-fi

我无法在firebaseUI演示应用程序上安装npm软件包。 我克隆了github上的主分支,只是尝试运行“npm安装”,但我遇到了一个错误,我从未在node package manager中遇到过。我明白了

'.' is not recognized as an internal or external command
我还尝试了这个将cygwin64,并得到了完全相同的结果。下面是错误,下面是my package.json

firebaseui@3.3.0 generate-test-files C:\repos\Firebase Demos\firebaseui-web
> ./buildtools/generate_test_files.sh

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firebaseui@3.3.0 generate-test-files: `./buildtools/generate_test_files.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the firebaseui@3.3.0 generate-test-files script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\adam\AppData\Roaming\npm-cache\_logs\2018-08-18T01_43_27_526Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firebaseui@3.3.0 test: `npm run build && npm run generate-test-files && ./buildtools/run_tests.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the firebaseui@3.3.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\adam\AppData\Roaming\npm-cache\_logs\2018-08-18T01_43_27_547Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firebaseui@3.3.0 prepublish: `npm run test && cp -r dist demo/public`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the firebaseui@3.3.0 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\adam\AppData\Roaming\npm-cache\_logs\2018-08-18T01_43_27_577Z-debug.log
{
  "name": "firebaseui",
  "version": "3.3.0",
  "description": "Javascript library for customizable UI on top of Firebase SDK",
  "files": [
    "dist/firebaseui.js",
    "dist/firebaseui.css",
    "dist/npm.js",
    "dist/index.d.ts",
    "dist/externs",
    "LICENSE",
    "README.md",
    "package.json"
  ],
  "main": "./dist/npm.js",
  "types": "./dist/index.d.ts",
  "style": "dist/firebaseui.css",
  "scripts": {
    "build": "gulp",
    "build-all": "gulp build-all",
    "build-soy": "gulp build-soy",
    "demo": "npm run build && ./buildtools/run_demo.sh",
    "test": "npm run build && npm run generate-test-files && ./buildtools/run_tests.sh",
    "serve": "npm run build && npm run generate-test-files && gulp serve",
    "generate-test-files": "./buildtools/generate_test_files.sh",
    "prepublish": "npm run test && cp -r dist demo/public"
  },
  "test": "npm run test",
  "author": "Google",
  "repository": {
    "type": "git",
    "url": "https://github.com/firebase/firebaseui-web.git"
  },
  "license": "Apache-2.0",
  "devDependencies": {
    "closure-builder": "^2.2.34",
    "firebase": "^5.0.0",
    "firebase-tools": "^4.0.1",
    "fs-extra": "^3.0.1",
    "google-closure-compiler": "^20171112.0.0",
    "google-closure-library": "^20171112.0.0",
    "google-closure-templates": "^20150410.0.0",
    "gulp": "^4.0.0",
    "gulp-clean-css": "^2.0.12",
    "gulp-closure-compiler": "^0.4.0",
    "gulp-concat-css": "^3.1.0",
    "gulp-connect": "^5.5.0",
    "gulp-css-flip": "^0.4.0",
    "gulp-css-inline-images": "^0.1.1",
    "gulp-sass": "^2.3.2",
    "gulp-util": "^3.0.7",
    "material-design-lite": "^1.2.0",
    "protractor": "^5.3.2",
    "streamqueue": "^1.1.1"
  },
  "dependencies": {
    "dialog-polyfill": "^0.4.7"
  },
  "peerDependencies": {
    "firebase": ">=5.0.0"
  }
}
package.json

firebaseui@3.3.0 generate-test-files C:\repos\Firebase Demos\firebaseui-web
> ./buildtools/generate_test_files.sh

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firebaseui@3.3.0 generate-test-files: `./buildtools/generate_test_files.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the firebaseui@3.3.0 generate-test-files script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\adam\AppData\Roaming\npm-cache\_logs\2018-08-18T01_43_27_526Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firebaseui@3.3.0 test: `npm run build && npm run generate-test-files && ./buildtools/run_tests.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the firebaseui@3.3.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\adam\AppData\Roaming\npm-cache\_logs\2018-08-18T01_43_27_547Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! firebaseui@3.3.0 prepublish: `npm run test && cp -r dist demo/public`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the firebaseui@3.3.0 prepublish script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\adam\AppData\Roaming\npm-cache\_logs\2018-08-18T01_43_27_577Z-debug.log
{
  "name": "firebaseui",
  "version": "3.3.0",
  "description": "Javascript library for customizable UI on top of Firebase SDK",
  "files": [
    "dist/firebaseui.js",
    "dist/firebaseui.css",
    "dist/npm.js",
    "dist/index.d.ts",
    "dist/externs",
    "LICENSE",
    "README.md",
    "package.json"
  ],
  "main": "./dist/npm.js",
  "types": "./dist/index.d.ts",
  "style": "dist/firebaseui.css",
  "scripts": {
    "build": "gulp",
    "build-all": "gulp build-all",
    "build-soy": "gulp build-soy",
    "demo": "npm run build && ./buildtools/run_demo.sh",
    "test": "npm run build && npm run generate-test-files && ./buildtools/run_tests.sh",
    "serve": "npm run build && npm run generate-test-files && gulp serve",
    "generate-test-files": "./buildtools/generate_test_files.sh",
    "prepublish": "npm run test && cp -r dist demo/public"
  },
  "test": "npm run test",
  "author": "Google",
  "repository": {
    "type": "git",
    "url": "https://github.com/firebase/firebaseui-web.git"
  },
  "license": "Apache-2.0",
  "devDependencies": {
    "closure-builder": "^2.2.34",
    "firebase": "^5.0.0",
    "firebase-tools": "^4.0.1",
    "fs-extra": "^3.0.1",
    "google-closure-compiler": "^20171112.0.0",
    "google-closure-library": "^20171112.0.0",
    "google-closure-templates": "^20150410.0.0",
    "gulp": "^4.0.0",
    "gulp-clean-css": "^2.0.12",
    "gulp-closure-compiler": "^0.4.0",
    "gulp-concat-css": "^3.1.0",
    "gulp-connect": "^5.5.0",
    "gulp-css-flip": "^0.4.0",
    "gulp-css-inline-images": "^0.1.1",
    "gulp-sass": "^2.3.2",
    "gulp-util": "^3.0.7",
    "material-design-lite": "^1.2.0",
    "protractor": "^5.3.2",
    "streamqueue": "^1.1.1"
  },
  "dependencies": {
    "dialog-polyfill": "^0.4.7"
  },
  "peerDependencies": {
    "firebase": ">=5.0.0"
  }
}

./buildtools/generate_test_files.sh

这里省略点斜杠(
/


尽管如此,如果您愿意,您可以使用
\\\
(因为单个“\”将跳过下一个字符),而且它会起作用。

尽管这个问题很老,但我在与另一个使用另一个操作系统(Linux x Windows)的开发人员协作时遇到了同样的问题。 在项目开始时,根据操作系统的不同,脚本
.sh
失败。合并一些分支后,我们必须不断修改
json
文件。 我们提出的解决方案是附加用于调用脚本的shell,例如,我们将初始化脚本更改为

...
{
start: bash ./myscript && npm run start
}
...

它在Linux和Windows上的Gitbash上都可以正常工作。

您知道。/导致此类问题的原因吗。不幸的是,你提出的建议不起作用