Tag: ubuntu 13.10

与nodejs和express错误

我想在Ubuntu 13.10发行版中使用express 。 我使用node version 0.10.29和npm 1.4.14当我使用express这是我的输出: module.js:340 throw err; ^ Error: Cannot find module 'mkdirp' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/usr/bin/express:10:14) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) 此外,我必须使用sudo npm因为npm不起作用(我不确定这是否是问题的一部分 – 但我怀疑path问题,不太确定)。 我GOOGLE了,但一直没有能够解决这个问题。 编辑:我想我弄乱了我的道路。 我无法重新安装npm。 这是$PATH输出 bash: […]

在Apache Cordova中添加平台不起作用

我正在Ubuntu 13.10上安装Apache Cordova,请遵循以下说明: http : //cordova.apache.org/docs/en/3.5.0//guide_cli_index.md.html#The%20Command-Line%20Interface 我被困在“添加平台”部分: $ cordova platforms ls Installed platforms: Available platforms: amazon-fireos, android, blackberry10, firefoxos, ubuntu 看起来像Ubuntu是可用的。 所以我继续。 $ cordova platform add ubuntu Checking ubuntu requirements… Running "dpkg-query -Wf'${db:Status-abbrev}' cmake debhelper libx11-dev libicu-dev pkg-config qtbase5-dev qtchooser qtdeclarative5-dev qtfeedback5-dev qtlocation5-dev qtmultimedia5-dev qtpim5-dev qtsensors5-dev qtsystems5-dev 2>/dev/null | grep -q '^i'" (output to follow) […]

使用最新的nodejs 1.10.15安装yeoman

我的系统从Ubuntu 13.04迁移到13.10,我已经安装了Ubuntu Logiteque提供的最新的nodejs软件包(这是自动软件包安装程序的frech名称,不知道它是否与英文相同…)。 试图用命令安装yeoman: npm install -g yo 给我以下错误: npm http 200 https://registry.npmjs.org/is/-/is-0.2.7.tgz /usr/local/bin/yo -> /usr/local/lib/node_modules/yo/cli.js > yo@1.1.2 postinstall /usr/local/lib/node_modules/yo > node ./scripts/doctor sh: 1: node: not found npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian npm ERR! yo@1.1.2 postinstall: `node […]

错误:UNABLE_TO_VERIFY_LEAF_SIGNATURE Phonegap安装

我想在Ubuntu中安装Phonegap。 NodeJS的安装是成功的,但是我不能安装Phonegap本身。 这里是terminal的错误输出: test@test-VirtualBox:~$ sudo npm install -g phonegap npm http GET https://registry.npmjs.org/phonegap npm http GET https://registry.npmjs.org/phonegap npm http GET https://registry.npmjs.org/phonegap npm ERR! Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE npm ERR! at SecurePair.<anonymous> (tls.js:1350:32) npm ERR! at SecurePair.EventEmitter.emit (events.js:92:17) npm ERR! at SecurePair.maybeInitFinished (tls.js:963:10) npm ERR! at CleartextStream.read [as _read] (tls.js:463:15) npm ERR! at CleartextStream.Readable.read (_stream_readable.js:320:10) npm ERR! at […]