Comments (6)
form-data
is not meant to be installed globally (-g
flag). Can you try install it locally and see if problem persists? Thank you.
And what is your OS?
from form-data.
OS -> Mac OSx Mavericks
npm install form-data
local
[ eric raynor ~/src/personalrecord_app ] [master]
$ npm install form-data
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/form-data
npm ERR! Failed to parse json
npm ERR! Unexpected end of input
npm ERR! File: /Users/eric/.npm/form-data/0.1.2/package/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/opt/boxen/homebrew/bin/npm" "install" "form-data"
npm ERR! cwd /Users/eric/src/personalrecord_app
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.7
npm ERR! file /Users/eric/.npm/form-data/0.1.2/package/package.json
npm ERR! code EJSONPARSE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/eric/src/personalrecord_app/npm-debug.log
npm ERR! not ok code 0
Debug log stuff, not sure if relevant
24 http GET https://registry.npmjs.org/form-data
25 http 304 https://registry.npmjs.org/form-data
26 silly registry.get cb [ 304,
26 silly registry.get { date: 'Sun, 20 Apr 2014 17:38:45 GMT',
26 silly registry.get server: 'Apache',
26 silly registry.get via: '1.1 varnish',
26 silly registry.get 'last-modified': 'Sun, 20 Apr 2014 17:38:45 GMT',
26 silly registry.get 'cache-control': 'max-age=1',
26 silly registry.get etag: '"9DDHIFS81YNHF51W3GLX74NBW"',
26 silly registry.get 'x-served-by': 'cache-lax1433-LAX',
26 silly registry.get 'x-cache': 'HIT',
26 silly registry.get 'x-cache-hits': '1',
26 silly registry.get 'x-timer': 'S1398015525.982081413,VS0,VE1',
26 silly registry.get vary: 'Accept',
26 silly registry.get 'content-length': '0',
26 silly registry.get 'keep-alive': 'timeout=10, max=50',
26 silly registry.get connection: 'Keep-Alive' } ]
27 verbose etag form-data from cache
28 silly addNameRange number 2 { name: 'form-data', range: '*', hasData: true }
29 silly addNameRange versions [ 'form-data',
29 silly addNameRange [ '0.0.0',
29 silly addNameRange '0.0.2',
29 silly addNameRange '0.0.3',
29 silly addNameRange '0.0.4',
29 silly addNameRange '0.0.5',
29 silly addNameRange '0.0.6',
29 silly addNameRange '0.0.7',
29 silly addNameRange '0.0.8',
29 silly addNameRange '0.0.9',
29 silly addNameRange '0.0.10',
29 silly addNameRange '0.1.0',
29 silly addNameRange '0.1.1',
29 silly addNameRange '0.1.2' ] ]
30 verbose addNamed [ 'form-data', '0.1.2' ]
31 verbose addNamed [ '0.1.2', '0.1.2' ]
32 silly lockFile 5abf5da9-form-data-0-1-2 [email protected]
33 verbose lock [email protected] /Users/eric/.npm/5abf5da9-form-data-0-1-2.lock
34 silly lockFile 5abf5da9-form-data-0-1-2 [email protected]
35 silly lockFile 5abf5da9-form-data-0-1-2 [email protected]
36 silly lockFile 43b94447-form-data form-data@
37 silly lockFile 43b94447-form-data form-data@
38 error Failed to parse json
38 error Unexpected end of input
39 error File: /Users/eric/.npm/form-data/0.1.2/package/package.json
40 error Failed to parse package.json data.
40 error package.json must be actual JSON, not just JavaScript.
40 error
40 error This is not a bug in npm.
40 error Tell the package author to fix their package.json file. JSON.parse
41 error System Darwin 13.1.0
42 error command "node" "/opt/boxen/homebrew/bin/npm" "install" "form-data"
43 error cwd /Users/eric/src/personalrecord_app
44 error node -v v0.10.26
45 error npm -v 1.4.7
46 error file /Users/eric/.npm/form-data/0.1.2/package/package.json
47 error code EJSONPARSE
48 verbose exit [ 1, true ]
Appreciate the help!
from form-data.
Can you run two commands for me?
npm config get registry
and
cat ~/.npm/form-data/0.1.2/package/package.json
Thank you.
from form-data.
[ eric raynor ~/src/personalrecord_app ] [master]
$ npm config get registry
https://registry.npmjs.org/
[ eric raynor ~/src/personalrecord_app ] [master]
$ cat ~/.npm/form-data/0.1.2/package/package.json
[ eric raynor ~/src/personalrecord_app ] [master]
$
Doesn't seem like any result for the second one?
EDIT:
Also, here's which npm is running if that helps, please let me know if there's anything else I can do to help figure this out -- apologies!
[ eric raynor ~/src/personalrecord_app ] [master]
$ which npm
/opt/boxen/homebrew/bin/npm
from form-data.
I deleted the form-data
folder, did npm install form-data
again and it worked.. strange. Sorry to bother!
from form-data.
Probably mangled installation.
from form-data.
Related Issues (20)
- [error] can not append "object" as "Blob" HOT 8
- TypeError: (getBuffer, getHeaders) is not a function HOT 4
- Published Packages Contain unwanted files HOT 3
- Doesn't play nice with node v18 undici fetch HOT 3
- getHeaders should add content length if known HOT 1
- Passing Uint8Array or Buffer leads to "source.on is not a function" error under Node 18 HOT 1
- Need Help Browser support HOT 3
- Final nail in the coffin HOT 1
- Is there a place to report security issues? HOT 2
- From Data HOT 1
- Is this Library Dead? HOT 1
- "form-data" is vulnerable to request tampering via a crafted filename HOT 1
- FormData is undefind
- FormData is undefind
- FormData class is confused with native FormData class in Chrome HOT 1
- Doesn't work well in node version 18 HOT 3
- any option to Read all the key and value from formdata HOT 1
- How to send an array of pdf files using form-data HOT 5
- How do I get upload progress when I submit??? HOT 1
- Mark package with sideEffects: false
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from form-data.