Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm package.json needs to be corrected #21

Closed
secretfader opened this issue Mar 1, 2011 · 3 comments
Closed

npm package.json needs to be corrected #21

secretfader opened this issue Mar 1, 2011 · 3 comments

Comments

@secretfader
Copy link

npm install mapnik
Password:
npm info it worked if it ends with ok
npm info using npm@0.3.7
npm info using node@v0.4.1
npm info fetch http://registry.npmjs.org/mapnik/-/mapnik-0.2.10.tgz
npm info calculating sha1 /tmp/npm-1299008942231/1299008942231-0.32237716135568917/tmp.tgz
npm info shasum 0f9fbbaf8e01b73ca5373925f4a5dcd361f8180d
npm ERR! couldn't read package.json in /tmp/npm-1299008942231/1299008942231-0.32237716135568917/contents/package
npm ERR! Error installing mapnik@0.2.10
npm ERR! Error: Failed to parse json
npm ERR! Unexpected token ILLEGAL
npm ERR!     at jsonParseFail (/usr/local/lib/node/.npm/npm/0.3.7/package/lib/utils/read-json.js:89:11)
npm ERR!     at /usr/local/lib/node/.npm/npm/0.3.7/package/lib/utils/read-json.js:82:14
npm ERR!     at P (/usr/local/lib/node/.npm/npm/0.3.7/package/lib/utils/read-json.js:62:40)
npm ERR!     at cb (/usr/local/lib/node/.npm/npm/0.3.7/package/lib/utils/graceful-fs.js:31:9)
npm ERR!     at [object Object]. (fs.js:86:5)
npm ERR!     at [object Object].emit (events.js:39:17)
npm ERR!     at afterRead (fs.js:843:12)
npm ERR! JSON.parse 
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse Note that package.json must be actual JSON, not
npm ERR! JSON.parse just a JavaScript object.
npm ERR! JSON.parse 
npm ERR! JSON.parse This changed in npm 0.3.0, and is not a bug in npm.
npm ERR! JSON.parse Tell the package author to fix their package.json file.
npm ERR! JSON.parse
npm ERR! System Darwin 10.6.0
npm not ok
@secretfader
Copy link
Author

@springmeyer
Copy link
Member

thanks so much for the report. I was still using npm@0.2.18 which must be more tolerance than recent versions for json syntax.

@secretfader
Copy link
Author

The stricter syntax started at 0.3.1.

Algunenano added a commit to Algunenano/node-mapnik that referenced this issue Apr 23, 2018
dadiorchen added a commit to dadiorchen/node-mapnik-1 that referenced this issue May 18, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants