当我尝试运行npm install时出现以下错误.错误如下:
npm ERR! node v0.12.12
npm ERR! npm v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! angular2-quickstart@1.0.0 postinstall: `typings install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-quickstart@1.0.0 postinstall script 'typings ins
tall'.
npm ERR! This is most likely a problem with the angular2-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get their info via:
npm …Run Code Online (Sandbox Code Playgroud)我正在使用量角器进行e2e测试我的角度应用程序,但得到:
TypeError:调用"protractor conf.js"时,对象#没有方法'解析'
这是conf文件内容:
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
capabilities: {
'browserName': 'chrome'
},
specs: ['HomePageCtrl_spec.js'],
chromeOnly: true,
jasmineNodeOpts: {
onComplete: null,
isVerbose: false,
showColors: true,
includeStackTrace: true
}
};
Run Code Online (Sandbox Code Playgroud)
这是我正在运行此命令的异常:
E:\eCOIGit\sidhome\SidHome\SidHome.Tests\ng-test-e2e>protractor Conf.js
Run Code Online (Sandbox Code Playgroud)
错误:
C:\ Users\xqwt\AppData\Roaming \npm \node_modules\protractor \node_modules\q\q.js:12 6 throw e; TypeError:对象#没有方法'解析'在新的TaskScheduler上的Function.ConfigParser.resolveFilePatterns(C:\ Users\xqwt\AppData\Roaming \npm \node_modules\protractor\lib\configParser.js:102:29)(C:\ Users\xqwt\AppData\Roaming \npm) \node_modules\protractor\lib\taskScheduler.js:31:31)在C:\ Users\xqwt\AppData\Roaming \npm \node_modules\protractor\lib\launcher.js:180:21 at _fulfilled(C:\ Users \在self.promiseDispatch.done上的xqwt\AppData\Roaming \npm \node_modules\protractor \nod e_modules\q\q.js:797:54)(C:\ Users\xqwt\AppData\Roaming \npm \node_modules\protractor \node_modules\q\q.js:826:30)在C:的Promise.promise.promiseDispatch(C:\ Users\xqwt\AppData\Roaming \npm \node_modules\protractor \node_modules\q\q.js:759:13)\Users\xqwt\AppData\Roaming \npm \node_modules\protractor \node_modules\q\q.js:573:44在flush(C:\ Users\xqwt\AppData\Roaming \npm \node_modules\protractor \node_mod ules\q\q.js:108:17)at.inTickCallback(node.js:419:13)at Function.Module.runMain(module. JS:499:11)
我试图从vuejs的github 存储库运行vue-hackernews-2.0示例
在设置部分,它解释了如何安装项目:
# install dependencies
npm install # or yarn
# serve in dev mode, with hot reload at localhost:8080
npm run dev
# build for production
npm run build
# serve in production mode
npm start
Run Code Online (Sandbox Code Playgroud)
我做了npm安装.在server.js中将端口更改为8888后,在命令行中键入"npm run dev".
> vue-hackernews-2.0@ dev D:\Users\212399486\WebstormProjects\vue-hackernews-2.0-master
> node server
server started at localhost:8888
DONE Compiled successfully in 16328ms 1:02:18 PM
DONE Compiled successfully in 17845ms 1:02:19 PM
webpack built bd162a76119031a85eed in 17845ms
Run Code Online (Sandbox Code Playgroud)
当我去localhost:8888它只会尝试加载1分钟然后它失败,没有控制台上的任何东西.
我想我也应该尝试"npm run build"和"npm start",所以我也使用了两个命令."npm run build"成功创建了dist文件.
但是在"npm …
当我跑: npm install -g sails
我收到此错误/警告: (node-gyp rebuild 2> builderror.log) || (exit 0)
我试过了:
npm install -g node-gyp
npm update
npm install
Run Code Online (Sandbox Code Playgroud)
似乎没什么用.我曾经在我的机器上运行并运行,直到我卸载它.现在我想再次使用它,它拒绝安装包.有什么建议?
我正在使用cordova 6通过navigator.splashscreen.hide()手动隐藏启动画面.该应用程序是有角度的.它适用于5.0以下的所有Android版本.
然而,白色屏幕仍然存在于Lollipop和Marshmallow.
Android API是否存在更高版本的问题?
I have a sample package.json for my application,
\n\n dependencies : {\n P1 : \xe2\x80\x9c^1.0.0\xe2\x80\x9d // has a peer dependency of p3 v1\n P2 : \xe2\x80\x9c^1.0.0\xe2\x80\x9d // has a peer dependency of p3 v2\n }\nRun Code Online (Sandbox Code Playgroud)\n\nP1 和 P2 对 P3 具有对等依赖关系,但对不同的版本有依赖关系。\n(例如 P1 对 P3 V1 有对等依赖关系,P2 对 P3 V2 有对等依赖关系)
\n\n(我不\xe2\x80\x99t有权访问p1 p2源代码。)
\n\n有什么方法可以解决这样的情况:我的 application\xe2\x80\x99s package.json 不显示警告消息?
\n我正在尝试使用此命令安装 nodejs 版本 14.15.4-
apt install nodejs=14.15.4
Run Code Online (Sandbox Code Playgroud)
但我收到此错误 - E: 未找到“nodejs”的版本“14.15.4”
我在这个命令中犯了什么错误?
或者有什么更好的安装方法吗?
我正在尝试为 React-Native 项目安装一些软件包,但它向我显示了 NPM 版本错误,所以我该如何升级。
我现在的版本是 4
当我为项目安装依赖项时,我看到了这一点:
\n\n Update available 5.7.1 \xe2\x86\x92 5.8.0 \xe2\x94\x82\n \xe2\x94\x82 Run npm i npm to update \nRun Code Online (Sandbox Code Playgroud)\n\n然后我这样做了:
\n\n$ npm i npm\nnpm WARN react-hot-api@0.4.7 requires a peer of react@>=0.11.0 || ^0.14.0-rc but none is installed. You must install peer dependencies yourself.\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})\n\n+ npm@5.8.0\nadded 523 packages from 726 contributors in 12.75s\nRun Code Online (Sandbox Code Playgroud)\n\n但为什么还是旧版本呢?
\n\n$ npm --version\n5.7.1\nRun Code Online (Sandbox Code Playgroud)\n node.js ×6
npm ×5
javascript ×4
angular ×1
angularjs ×1
cordova ×1
dependencies ×1
exitstatus ×1
installation ×1
linux ×1
packages ×1
protractor ×1
reactjs ×1
sails.js ×1
selenium ×1
ubuntu ×1
vue.js ×1
webpack ×1