草庐IT

find_end

全部标签

node.js - 错误 TS2304 : Cannot find name 'Promise'

大家好,我浏览了stackoverflow上所有可用的解决方案。但对我没有任何工作。因此发布问题。tsconfig.json{"version":"2.13.0","compilerOptions":{"target":"es5","module":"commonjs","sourceMap":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"removeComments":true,"noImplicitAny":false},"exclude":["node_modules"]}package.json

node.js - 错误 TS2304 : Cannot find name 'Promise'

大家好,我浏览了stackoverflow上所有可用的解决方案。但对我没有任何工作。因此发布问题。tsconfig.json{"version":"2.13.0","compilerOptions":{"target":"es5","module":"commonjs","sourceMap":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"removeComments":true,"noImplicitAny":false},"exclude":["node_modules"]}package.json

node.js - 错误 : Couldn't find preset "react" when installed using npm install --global babel-preset-react but works without global flag

我使用npminstall--globalbabel-cli安装了BabelCLI(版本6)。然后我使用npminstall--globalbabel-preset-react安装react预设。然后我将项目目录中的.babelrc文件设置为{"presets":["react"]}当我尝试构建JSX文件时,它失败了Error:Couldn'tfindpreset"react"atOptionManager.mergePresets(/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformat

node.js - 错误 : Couldn't find preset "react" when installed using npm install --global babel-preset-react but works without global flag

我使用npminstall--globalbabel-cli安装了BabelCLI(版本6)。然后我使用npminstall--globalbabel-preset-react安装react预设。然后我将项目目录中的.babelrc文件设置为{"presets":["react"]}当我尝试构建JSX文件时,它失败了Error:Couldn'tfindpreset"react"atOptionManager.mergePresets(/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformat

node.js - Cygwin : unexpected end of file 上的 NPM

我正在尝试在cygwin上使用NPM,但不断收到以下错误:ERR!tar"-mvxpf""-""--no-same-owner""-C""/tmp/npm-1305893882865/1305893885765-0.008730818051844835/contents/___package.npm"tar:UnexpectedEOFinarchiveERR!tar"-mvxpf""-""--no-same-owner""-C""/tmp/npm-1305893882865/1305893885765-0.008730818051844835/contents/___package.n

node.js - Cygwin : unexpected end of file 上的 NPM

我正在尝试在cygwin上使用NPM,但不断收到以下错误:ERR!tar"-mvxpf""-""--no-same-owner""-C""/tmp/npm-1305893882865/1305893885765-0.008730818051844835/contents/___package.npm"tar:UnexpectedEOFinarchiveERR!tar"-mvxpf""-""--no-same-owner""-C""/tmp/npm-1305893882865/1305893885765-0.008730818051844835/contents/___package.n

node.js - 错误 "Cannot find module ' npmlog '"after "npm 更新 -g"

我有NVM0.30.1并用它在Fedora22上安装node.jsv5.4.0(带有NPM3.5.4)。当我运行npmupdate-g时,我收到以下信息警告:npmWARNEBUNDLEOVERRIDEReplacingbundlednpm>init-package-jsonwithnewinstalledversionnpmWARNEBUNDLEOVERRIDEReplacingbundlednpm>node-gypwithnewinstalledversionnpmWARNEBUNDLEOVERRIDEReplacingbundlednpm>npm-install-checkswi

node.js - 错误 "Cannot find module ' npmlog '"after "npm 更新 -g"

我有NVM0.30.1并用它在Fedora22上安装node.jsv5.4.0(带有NPM3.5.4)。当我运行npmupdate-g时,我收到以下信息警告:npmWARNEBUNDLEOVERRIDEReplacingbundlednpm>init-package-jsonwithnewinstalledversionnpmWARNEBUNDLEOVERRIDEReplacingbundlednpm>node-gypwithnewinstalledversionnpmWARNEBUNDLEOVERRIDEReplacingbundlednpm>npm-install-checkswi

javascript - Passport 推特 : failed to find request token in session

就在昨天在Heroku上,我开始在快速登录Twitter时遇到此错误Error:failedtofindrequesttokeninsessionatStrategy.(/app/node_modules/passport-twitter/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth.js:120:54)atStrategy.authenticate(/app/node_modules/passport-twitter/lib/passport-twitter/strategy.js:82:40)atPa

javascript - Passport 推特 : failed to find request token in session

就在昨天在Heroku上,我开始在快速登录Twitter时遇到此错误Error:failedtofindrequesttokeninsessionatStrategy.(/app/node_modules/passport-twitter/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth.js:120:54)atStrategy.authenticate(/app/node_modules/passport-twitter/lib/passport-twitter/strategy.js:82:40)atPa