0

Thanks Guys for the help so far. But it is still not working, has anyone maybe another idea?

I'm using Sublime Text and did save with encoding UTF-8 (without the BOM) tag, but error stays the same.

git clone http://github.com/isaacs/npm.git
cd npm
sudo make install

i think this command has worked for me now im waiting for the installation and will try it again

error is still the same :(

but not sure i succesfully installed npm at the end it says

scripts/doc-build.sh doc/misc/semver.md html/doc/misc/semver.html
scripts/doc-build.sh doc/misc/npm-index.md html/doc/index.html
node cli.js install -g -f
npm WARN using --force I sure hope you know what you are doing.
npm WARN cannot run in wd npm@1.3.14 node bin/npm-cli.js prune --prefix=. --no-global && rm -rf test/*/*/node_modules && make -j4 doc (wd=.)
npm WARN package.json github-url-from-git@1.1.1 No repository field.
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm@1.3.14 /usr/local/lib/node_modules/npm
4

2 回答 2

0

你少了一个逗号:

{
    "name": "node-todo",
    "version": "0.0.0",
    "description": "Simple todo application",
    "main": "server.js",
    "author": "Ludwig Kaube",
    "dependencies": {
        "express": "~3.4.4",
        "mongoose": "~3.6.2"
    }, 
    "private": true
}

其他一切看起来都不错。

更正:正如所指出的,dependencies也拼错了。

于 2013-11-14T18:10:31.147 回答
0

请尝试以下链接来验证您的 package.json 文件。之后可能会起作用

http://package-json-validator.com/

您也可以访问此链接以查看如何编写 package.json 文件

https://npmjs.org/doc/json.html

现在我得到了问题。请参阅此错误报告。这意味着什么,您应该设置您的文本编辑器以 UTF-8 保存文件,没有字节顺序标记。或者更好地使用不同的文本编辑器。代码很好。祝你好运!

于 2013-11-14T19:15:22.973 回答