npm ERR! missing script: json: - npm

I'm getting this error when I run npm run json: server.
npm ERR! missing script: json:
when I open the log file, this is what it says:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'json:',
1 verbose cli 'server' ]
2 info using npm#5.5.1
3 info using node#v8.2.1
4 verbose stack Error: missing script: json:
4 verbose stack at run (C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\lib\run-script.js:151:19)
4 verbose stack at C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\lib\run-script.js:61:5
4 verbose stack at C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:115:5
4 verbose stack at C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:402:5
4 verbose stack at checkBinReferences_ (C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:357:45)
4 verbose stack at final (C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:400:3)
4 verbose stack at then (C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:160:5)
4 verbose stack at C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\node_modules\read-package-json\read-json.js:348:12
4 verbose stack at C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16
4 verbose stack at tryToString (fs.js:513:3)
5 verbose cwd C:\Users\IanP\Documents\GitHub\JSONSERVER
6 verbose Windows_NT 10.0.15063
7 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "json:" "server"
8 verbose node v8.2.1
9 verbose npm v5.5.1
10 error missing script: json:
11 verbose exit [ 1, true ]
My package.json has the following
{
"name": "jsonserver",
"version": "1.0.0",
"description": "Fake REST API for testing",
"main": "index.js",
"scripts": {
"json:server": "json-server --watch db.json"
},
"author": "",
"license": "ISC",
"dependencies": {
"json-server": "^0.12.1"
}
}
I did not modify anything since it's last successful run. When I was starting to work the following day, suddenly the error.
TIA.

Rename the "json:server" in scripts to any of the JSON verified characters.
: are generally used to separate key-value pair.
Even in the log it's pointing out to the same (see verbose line 7).
7 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\IanP\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "json:" "server"
So, it would be good idea to replace "json:server" with "json-server" or using camel-Case insted like "jsonServer".
Hope this helps.

Related

When trying to publish an npm package I get the following error: Did you mean to publish ./package/, instead of ./?

I'm trying to publish my first npm package, but there seems to be something that I'm missing.
I have already tested the package with npm link and everything works as expected, however I am unable to publish it. I seem to be missing something, but can't find what it is.
Running npm publish or npm publish --dry-run give me the following error:
npm ERR!
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c echo 'Did you mean to publish ./package/, instead of ./?' && exit 1
My environment is:
Svelte + Svelte kit
Vite
Typescript
My vite config is:
import { sveltekit } from '#sveltejs/kit/vite';
/** #type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()]
};
export default config;
This is the complete log of the error:
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm#8.11.0
2 info using node#v16.16.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\Users\user1\AppData\Roaming\nvm\v16.16.0\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:C:\Users\user1\Namu\sveltekit-auth0\.npmrc Completed in 1ms
10 timing config:load:project Completed in 4ms
11 timing config:load:file:C:\Users\user1\.npmrc Completed in 0ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Program Files\nodejs\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 12ms
19 timing npm:load:configload Completed in 12ms
20 timing npm:load:mkdirpcache Completed in 1ms
21 timing npm:load:mkdirplogs Completed in 1ms
22 verbose title npm publish
23 verbose argv "publish" "--dry-run"
24 timing npm:load:setTitle Completed in 1ms
25 timing config:load:flatten Completed in 2ms
26 timing npm:load:display Completed in 3ms
27 verbose logfile logs-max:10 dir:C:\Users\user1\AppData\Local\npm-cache\_logs
28 verbose logfile C:\Users\user1\AppData\Local\npm-cache\_logs\2023-01-02T20_06_32_635Z-debug-0.log
29 timing npm:load:logFile Completed in 4ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 22ms
33 verbose publish [ '.' ]
34 silly logfile start cleaning logs, removing 6 files
35 timing command:publish Completed in 63ms
36 verbose stack Error: command failed
36 verbose stack at ChildProcess.<anonymous> (C:\Users\user1\AppData\Roaming\nvm\v16.16.0\node_modules\npm\node_modules\#npmcli\promise-spawn\lib\index.js:63:27)
36 verbose stack at ChildProcess.emit (node:events:527:28)
36 verbose stack at maybeClose (node:internal/child_process:1092:16)
36 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
37 verbose pkgid sveltekit-auth0#0.0.1
38 verbose cwd C:\Users\user1\Namu\sveltekit-auth0
39 verbose Windows_NT 10.0.22621
40 verbose node v16.16.0
41 verbose npm v8.11.0
42 error code 1
43 error path C:\Users\user1\Namu\sveltekit-auth0
44 error command failed
45 error command C:\WINDOWS\system32\cmd.exe /d /s /c echo 'Did you mean to publish `./package/`, instead of `./`?' && exit 1
46 verbose exit 1
47 timing npm Completed in 111ms
48 verbose code 1
49 error A complete log of this run can be found in:
49 error C:\Users\user1\AppData\Local\npm-cache\_logs\2023-01-02T20_06_32_635Z-debug-0.log
Any ideas?
I have tried modifying the vite.config.js file to something like:
import { sveltekit } from '#sveltejs/kit/vite';
import * as path from 'path';
/** #type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()],
resolve: {
alias: [
{
find: '~',
replacement: path.resolve(__dirname, './src')
}
]
},
server: {
port: 3000
},
build: {
manifest: true,
minify: true,
reportCompressedSize: true,
lib: {
entry: path.resolve(__dirname, 'auth0/auth-service.ts'),
fileName: 'auth-config',
formats: ['es', 'cjs']
},
rollupOptions: {
external: [],
plugins: [sveltekit()]
}
}
};
export default config;
And similar configurations I found online, but it always produces the same error. I must be missing something.
SvelteKit generates a package folder with a modified package.json that should be used for publishing. It lists all the exports contained in the library.
Hence you should cd into that directory and run npm publish there.

`npm outdated -g` does not work, error happens

If I checck global npm packages if up-to-date, facing issues:
C:\Users\Xin>npm outdated -g
npm ERR! Cannot read property 'length' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Xin\AppData\Roaming\npm-cache\_logs\2019-05-16T09_34_44_582Z-debug.log
The error log as below:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\Xin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'outdated',
1 verbose cli '--global' ]
2 info using npm#6.9.0
3 info using node#v10.15.3
4 verbose npm-session 2407c2fb873b413f
5 http fetch GET 304 https://registry.npmjs.org/audit-ci 721ms (from cache)
6 silly pacote registry packument for audit-ci#1.4.1 fetched in 740ms
7 http fetch GET 304 https://registry.npmjs.org/depcheck 720ms (from cache)
8 silly pacote registry packument for depcheck#0.7.2 fetched in 741ms
9 http fetch GET 304 https://registry.npmjs.org/gulp 723ms (from cache)
10 silly pacote registry packument for gulp#4.0.0 fetched in 744ms
11 http fetch GET 304 https://registry.npmjs.org/npm-check 722ms (from cache)
12 silly pacote registry packument for npm-check#5.9.0 fetched in 746ms
13 http fetch GET 304 https://registry.npmjs.org/node-gyp 734ms (from cache)
14 silly pacote registry packument for node-gyp#4.0.0 fetched in 756ms
15 http fetch GET 304 https://registry.npmjs.org/prettier 733ms (from cache)
16 silly pacote registry packument for prettier#1.16.4 fetched in 759ms
17 http fetch GET 304 https://registry.npmjs.org/yarn 737ms (from cache)
18 silly pacote registry packument for yarn#1.13.0 fetched in 766ms
19 http fetch GET 304 https://registry.npmjs.org/pm2 748ms (from cache)
20 silly pacote registry packument for pm2#3.4.0 fetched in 776ms
21 http fetch GET 304 https://registry.npmjs.org/npm 767ms (from cache)
22 silly pacote registry packument for npm#6.9.0 fetched in 805ms
23 verbose stack TypeError: Cannot read property 'length' of undefined
23 verbose stack at dotindex (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:59:32)
23 verbose stack at C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:11:21
23 verbose stack at Array.forEach (<anonymous>)
23 verbose stack at forEach (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:73:31)
23 verbose stack at C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:10:9
23 verbose stack at Array.reduce (<anonymous>)
23 verbose stack at reduce (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:63:30)
23 verbose stack at module.exports (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\text-table\index.js:9:20)
23 verbose stack at C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\lib\outdated.js:130:16
23 verbose stack at cb (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\slide\lib\async-map.js:47:24)
23 verbose stack at outdated_ (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\lib\outdated.js:221:12)
23 verbose stack at skip (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\lib\outdated.js:343:5)
23 verbose stack at updateDeps (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\lib\outdated.js:446:7)
23 verbose stack at tryCatcher (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
23 verbose stack at Promise.successAdapter [as _fulfillmentHandler0] (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\nodeify.js:23:30)
23 verbose stack at Promise._settlePromise (C:\Users\Xin\AppData\Roaming\npm\node_modules\npm\node_modules\bluebird\js\release\promise.js:566:21)
24 verbose cwd C:\Users\Xin
25 verbose Windows_NT 10.0.17763
26 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Xin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "outdated" "--global"
27 verbose node v10.15.3
28 verbose npm v6.9.0
29 error Cannot read property 'length' of undefined
30 verbose exit [ 1, true ]

NPM Can't Publish E400 New package version must have dist with {shasum, tarball}

I have this issue that all of a sudden I can not publish to npm anymore.
I get the following error when running npm publish
NPM Can't Publish E400 New package version must have dist with {shasum, tarball}
I don't know what I can do about it and I found nothing on the internet. I did do an npm version minor on a different mac and forgot to npm publish. So I am try to publish from a different mac. However I tried creating a patch version and still got the same error. Any Help? I attached the logs below.
This file does not exist
/var/folders/b1/qwvr4ldn1_375rkwn7yhyk4m0000gn/T/npm-6060-1b2f34a9/tmp/fromDir-157455b2/package.tgz
However I don't know how to create it, and I tried to delete the tag and the commit and do an npm version minor again. It works fine, but when I do npm publish afterwards, I get the same error again.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/9.8.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'publish' ]
2 info using npm#5.6.0
3 info using node#v9.8.0
4 verbose npm-session 009a09b3734b2310
5 verbose publish [ '.' ]
6 info lifecycle html5sortable#0.8.0~prepublish: html5sortable#0.8.0
7 info lifecycle html5sortable#0.8.0~prepare: html5sortable#0.8.0
8 info lifecycle html5sortable#0.8.0~prepublishOnly: html5sortable#0.8.0
9 info lifecycle html5sortable#0.8.0~prepack: html5sortable#0.8.0
10 info lifecycle html5sortable#0.8.0~postpack: html5sortable#0.8.0
11 verbose getPublishConfig undefined
12 silly mapToRegistry name html5sortable
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry data { type: 'tag',
15 silly mapToRegistry registry: true,
15 silly mapToRegistry where: undefined,
15 silly mapToRegistry raw: 'html5sortable',
15 silly mapToRegistry name: 'html5sortable',
15 silly mapToRegistry escapedName: 'html5sortable',
15 silly mapToRegistry scope: undefined,
15 silly mapToRegistry rawSpec: '',
15 silly mapToRegistry saveSpec: null,
15 silly mapToRegistry fetchSpec: 'latest',
15 silly mapToRegistry gitRange: undefined,
15 silly mapToRegistry gitCommittish: undefined,
15 silly mapToRegistry hosted: undefined }
16 silly mapToRegistry uri https://registry.npmjs.org/html5sortable
17 verbose publish registryBase https://registry.npmjs.org/
18 silly publish uploading /var/folders/b1/qwvr4ldn1_375rkwn7yhyk4m0000gn/T/npm-6060-1b2f34a9/tmp/fromDir-157455b2/package.tgz
19 verbose request uri https://registry.npmjs.org/html5sortable
20 verbose request sending authorization for write operation
21 info attempt registry request try #1 at 1:09:12 PM
22 verbose request using bearer token for auth
23 verbose request id gda9f5bf7619f2e
24 http request PUT https://registry.npmjs.org/html5sortable
25 http 400 https://registry.npmjs.org/html5sortable
26 verbose headers { 'content-type': 'application/json',
26 verbose headers 'cache-control': 'max-age=300',
26 verbose headers 'content-length': '86',
26 verbose headers 'accept-ranges': 'bytes',
26 verbose headers date: 'Sat, 10 Mar 2018 12:09:12 GMT',
26 verbose headers via: '1.1 varnish',
26 verbose headers connection: 'keep-alive',
26 verbose headers 'x-served-by': 'cache-hhn1520-HHN',
26 verbose headers 'x-cache': 'MISS',
26 verbose headers 'x-cache-hits': '0',
26 verbose headers 'x-timer': 'S1520683750.327475,VS0,VE1855',
26 verbose headers vary: 'Accept-Encoding, Accept' }
27 error publish Failed PUT 400
28 verbose stack Error: New package version must have dist with {shasum, tarball}. : html5sortable
28 verbose stack at makeError (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:314:12)
28 verbose stack at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:302:14)
28 verbose stack at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:216:14)
28 verbose stack at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:186:22)
28 verbose stack at Request.emit (events.js:180:13)
28 verbose stack at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1163:10)
28 verbose stack at Request.emit (events.js:180:13)
28 verbose stack at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1085:12)
28 verbose stack at Object.onceWrapper (events.js:272:13)
28 verbose stack at IncomingMessage.emit (events.js:185:15)
28 verbose stack at endReadableNT (_stream_readable.js:1101:12)
28 verbose stack at process._tickCallback (internal/process/next_tick.js:114:19)
29 verbose statusCode 400
30 verbose pkgid html5sortable
31 verbose cwd /Users/lukasoppermann/Code/html5sortable
32 verbose Darwin 16.7.0
33 verbose argv "/usr/local/Cellar/node/9.8.0/bin/node" "/usr/local/bin/npm" "publish"
34 verbose node v9.8.0
35 verbose npm v5.6.0
36 error code E400
37 error New package version must have dist with {shasum, tarball}. : html5sortable
38 verbose exit [ 1, true ]
I had a dist field in my package.json which was messing with the publish process. So removing it solved everything.
You can try,
ng init
where you have the field package.json

Apache CouchDB + npm-registry-couchapp debugging configuration = cannot npm install

Currently I'm in the process of creating a private npm registry. I've got couchdb set up and is replicating, as I have verified using the couchdb curl request /_all_docs, which returns what appears to be the entire list of libs stored on NPM. The problem I'm having is that I cannot seem to run an npm install. When I comment out the assignment of the registry variable in .npmrc, I can install without issue.
Here are the relevant lines from .npmrc:
registry = http://localhost:5984/registry/_design/app/_rewrite
npmjs.org:couch = http://<user>:<password>#127.0.0.1:5984/registry
I've added the recommended lines to local.ini, I'm using npm-registry-couchapp and have followed all directions there as well.
When I attempt npm install in the terminal, it hangs up on the following step: fetchMetadata: sill install loadAllDepsIntoIdealTree
The following command also fails, npm \
--registry=http://localhost:5984/registry/_design/app/_rewrite \
install node-sass
Here's the output from the npm debug log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ]
2 info using npm#5.5.1
3 info using node#v6.11.4
4 verbose npm-session 28055a10e204f6fe
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall npm-registry-couchapp#2.7.0
7 info lifecycle npm-registry-couchapp#2.7.0~preinstall: npm-registry-couchapp#2.7.0
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 silly install loadShrinkwrap
13 silly install loadAllDepsIntoIdealTree
14 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/request 70119ms attempt #3
15 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/rimraf 70114ms attempt #3
16 silly fetchPackageMetaData error for request#^2.42.0 500 Internal Server Error: request#^2.42.0
17 silly fetchPackageMetaData error for rimraf#~2.2.6 500 Internal Server Error: rimraf#~2.2.6
18 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/parse-json-response 70120ms attempt #3
19 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/which 70115ms attempt #3
20 silly fetchPackageMetaData error for parse-json-response#^1.0.1 500 Internal Server Error: parse-json-response#^1.0.1
21 silly fetchPackageMetaData error for which#^1.0.5 500 Internal Server Error: which#^1.0.5
22 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/couchapp 70119ms attempt #3
23 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/json 70119ms attempt #3
24 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/semver 70117ms attempt #3
25 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/tap 70124ms attempt #3
26 silly fetchPackageMetaData error for couchapp#~0.11.0 500 Internal Server Error: couchapp#~0.11.0
27 silly fetchPackageMetaData error for json#^9.0.2 500 Internal Server Error: json#^9.0.2
28 silly fetchPackageMetaData error for semver#4 500 Internal Server Error: semver#4
29 silly fetchPackageMetaData error for tap#* 500 Internal Server Error: tap#*
30 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/semver 70032ms attempt #3
31 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/json 70034ms attempt #3
32 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/couchapp 70035ms attempt #3
33 silly fetchPackageMetaData error for semver#4 500 Internal Server Error: semver#4
34 silly fetchPackageMetaData error for json#^9.0.2 500 Internal Server Error: json#^9.0.2
35 silly fetchPackageMetaData error for couchapp#~0.11.0 500 Internal Server Error: couchapp#~0.11.0
36 verbose stack Error: 500 Internal Server Error: semver#4
36 verbose stack at fetch.then.res (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:42:19)
36 verbose stack at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
36 verbose stack at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
36 verbose stack at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
36 verbose stack at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
36 verbose stack at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
36 verbose stack at Async._drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
36 verbose stack at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
36 verbose stack at Immediate.Async.drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
36 verbose stack at runCallback (timers.js:672:20)
36 verbose stack at tryOnImmediate (timers.js:645:5)
36 verbose stack at processImmediate [as _immediateCallback] (timers.js:617:5)
37 verbose cwd /Users/frontend/projects/npm-registry-couchapp
38 verbose Darwin 16.7.0
39 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
40 verbose node v6.11.4
41 verbose npm v5.5.1
42 error code E500
43 error 500 Internal Server Error: semver#4
44 verbose exit [ 1, true ]
If you can offer any tips about what to try next, or what to search, that would be most excellent. Also, I'm happy to add more code.
It was an easy fix - I just changed the registry link to
http://localhost:5984/registry/

Not able to install alloy

I am getting this error while trying to download alloy in titanium. It seems proxy error but i double checked there is no proxy setting.How can i get it through.
npm ERR! Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND.
Here is the Log file
0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'alloy' ]
2 info using npm#1.2.15
3 info using node#v0.10.1
4 verbose read json C:\Users\tarak\AppData\Roaming\npm\package.json
5 verbose read json C:\Users\tarak\AppData\Roaming\npm\package.json
6 verbose cache add [ 'alloy', null ]
7 verbose cache add name=undefined spec="alloy" args=["alloy",null]
8 verbose parsed url { protocol: null,
8 verbose parsed url slashes: null,
8 verbose parsed url auth: null,
8 verbose parsed url host: null,
8 verbose parsed url port: null,
8 verbose parsed url hostname: null,
8 verbose parsed url hash: null,
8 verbose parsed url search: null,
8 verbose parsed url query: null,
8 verbose parsed url pathname: 'alloy',
8 verbose parsed url path: 'alloy',
8 verbose parsed url href: 'alloy' }
9 silly lockFile 8d809cba-alloy alloy
10 verbose lock alloy C:\Users\tarak\AppData\Roaming\npm-cache\8d809cba-alloy.lock
11 silly lockFile 8d809cba-alloy alloy
12 silly lockFile 8d809cba-alloy alloy
13 verbose addNamed [ 'alloy', '' ]
14 verbose addNamed [ null, '' ]
15 silly lockFile b2f8915b-alloy alloy#
16 verbose lock alloy# C:\Users\tarak\AppData\Roaming\npm-cache\b2f8915b-alloy.lock
17 silly addNameRange { name: 'alloy', range: '', hasData: false }
18 verbose url raw alloy
19 verbose url resolving [ 'https://registry.npmjs.org/', './alloy' ]
20 verbose url resolved https://registry.npmjs.org/alloy
21 info trying registry request attempt 1 at 18:54:45
22 http GET https://registry.npmjs.org/alloy
23 info retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND
24 info trying registry request attempt 2 at 18:55:03
25 http GET https://registry.npmjs.org/alloy
26 info retry will retry, error on last attempt: Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND
27 info trying registry request attempt 3 at 18:56:05
28 http GET https://registry.npmjs.org/alloy
29 silly lockFile b2f8915b-alloy alloy#
30 silly lockFile b2f8915b-alloy alloy#
31 error Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND
31 error at ClientRequest.onError (c:\Program Files\nodejs\node_modules\npm\node_modules\request\tunnel.js:161:17)
31 error at ClientRequest.g (events.js:175:14)
31 error at ClientRequest.EventEmitter.emit (events.js:95:17)
31 error at CleartextStream.socketErrorListener (http.js:1500:9)
31 error at CleartextStream.EventEmitter.emit (events.js:95:17)
31 error at Socket.onerror (tls.js:1336:17)
31 error at Socket.EventEmitter.emit (events.js:117:20)
31 error at net.js:807:16
31 error at process._tickCallback (node.js:415:13)
32 error If you need help, you may report this log at:
32 error <http://github.com/isaacs/npm/issues>
32 error or email it to:
32 error <npm-#googlegroups.com>
33 error System Windows_NT 6.1.7600
34 error command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "alloy"
35 error cwd C:\Users\tarak
36 error node -v v0.10.1
37 error npm -v 1.2.15
38 error code ECONNRESET
39 verbose exit [ 1, true ]