Hello so i have been trying all day to create a new node project, but there's no way,i receive this error:
the error i get
i desinstalled and reinstalled node js,but the problem still persist, everything was working today morning.Please help,am stuck apparently i am the only one who got this error,i searched eveywhere on the web but no one had the same problem as me .
> 0 info it worked if it ends with ok
1 verbose cli [
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 'create-jjj#latest',
1 verbose cli '--global',
1 verbose cli '--prefix',
1 verbose cli 'C:\\Users\\tokis\\AppData\\Roaming\\npm-cache\\_npx\\6432',
1 verbose cli '--loglevel',
1 verbose cli 'error',
1 verbose cli '--json'
1 verbose cli ]
2 info using npm#6.14.11
3 info using node#v14.16.0
4 verbose npm-session 99f9bbdb8eb57274
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 404 https://github.com/npm/npm-registry-couchapp/create-jjj 2932ms
8 http fetch GET 404 https://github.com/npm/npm-registry-couchapp/create-jjj 346ms
9 silly fetchPackageMetaData error for create-jjj#latest 404 Not Found - GET https://github.com/npm/npm-registry-couchapp/create-jjj - Not Found
10 timing stage:rollbackFailedOptional Completed in 1ms
11 timing stage:runTopLevelLifecycles Completed in 4012ms
12 verbose stack Error: 404 Not Found - GET https://github.com/npm/npm-registry-couchapp/create-jjj - Not Found
12 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:117:15
12 verbose stack at processTicksAndRejections (internal/process/task_queues.js:93:5)
13 verbose statusCode 404
14 verbose pkgid create-jjj#latest
15 verbose cwd C:\Users\tokis\Desktop\Nouveau dossier
16 verbose Windows_NT 10.0.19042
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "create-jjj#latest" "--global" "--prefix" "C:\\Users\\tokis\\AppData\\Roaming\\npm-cache\\_npx\\6432" "--loglevel" "error" "--json"
18 verbose node v14.16.0
19 verbose npm v6.14.11
20 error code E404
21 error 404 Not Found - GET https://github.com/npm/npm-registry-couchapp/create-jjj - Not Found
22 error 404
23 error 404 'create-jjj#latest' is not in the npm registry.
24 error 404 You should bug the author to publish it (or use the name yourself!)
25 error 404 Note that you can also install from a
26 error 404 tarball, folder, http url, or git url.
27 verbose exit [ 1, true ]
Related
when i tried to run npm install -g create-react-app to create react app getting following error.
when i tired to run "npm install -g npm" getting same error.
Could you please guide me solve this issue ?
debug.log file,
1 verbose cli [
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 'create-react-app'
1 verbose cli ]
2 info using npm#6.14.13
3 info using node#v14.17.1
4 verbose npm-session 5c7b621106479737
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for create-react-app#latest error:0909006C:PEM routines:get_name:no start line
8 timing stage:rollbackFailedOptional Completed in 1ms
9 timing stage:runTopLevelLifecycles Completed in 162ms
10 verbose stack Error: error:0909006C:PEM routines:get_name:no start line
10 verbose stack at Object.createSecureContext (_tls_common.js:149:17)
10 verbose stack at Object.connect (_tls_wrap.js:1597:48)
10 verbose stack at HttpsAgent.createConnection (https.js:137:22)
10 verbose stack at HttpsAgent.createSocket (C:\Program Files\nodejs\node_modules\npm\node_modules\agentkeepalive\lib\_http_agent.js:265:26)
10 verbose stack at HttpsAgent.createSocket (C:\Program Files\nodejs\node_modules\npm\node_modules\agentkeepalive\lib\agent.js:77:11)
10 verbose stack at HttpsAgent.addRequest (C:\Program Files\nodejs\node_modules\npm\node_modules\agentkeepalive\lib\_http_agent.js:239:10)
10 verbose stack at new ClientRequest (_http_client.js:305:16)
10 verbose stack at request (https.js:333:10)
10 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:54:17
10 verbose stack at new Promise (<anonymous>)
10 verbose stack at fetch (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:41:10)
10 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\make-fetch-happen\index.js:332:14
10 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\promise-retry\index.js:29:24
11 verbose cwd C:\Users\user\development
12 verbose Windows_NT 10.0.19042
13 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "create-react-app"
14 verbose node v14.17.1
15 verbose npm v6.14.13
16 error code ERR_OSSL_PEM_NO_START_LINE
17 error error:0909006C:PEM routines:get_name:no start line
18 verbose exit [ 1, true ]```
Use the below commands to set up the development environment.
npx create-react-app my-app
cd my-app
npm start
Always follow the Documentation :)
Firstly I installed the latest version of angular cli. Then when I tried to downgrade to 7.3.3 there was an error: 400 Bad Request - GET https://github.com/. Also I can not install anything with npm install like node-sass etc. So I unistalled nodejs and tried to install again angular cli, but the same error appeared. Maybe I have changed any configuration.
CMD
C:\Windows\system32>node -v
v12.17.0
C:\Windows\system32>npm install -g #angular/cli
npm ERR! code E400
npm ERR! 400 Bad Request - GET https://github.com/
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\XXXX\AppData\Roaming\npm-cache\_logs\2020-06-01T10_49_37_560Z-debug.log
Logs
0 info it worked if it ends with ok
1 verbose cli [
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 '#angular/cli'
1 verbose cli ]
2 info using npm#6.14.4
3 info using node#v12.17.0
4 verbose npm-session bc2383db262e35f5
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 400 https://github.com/ 506ms
8 silly fetchPackageMetaData error for #angular/cli#latest 400 Bad Request - GET https://github.com/
9 timing stage:rollbackFailedOptional Completed in 1ms
10 timing stage:runTopLevelLifecycles Completed in 543ms
11 verbose stack Error: 400 Bad Request - GET https://github.com/
11 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:104:15
11 verbose stack at processTicksAndRejections (internal/process/task_queues.js:97:5)
12 verbose statusCode 400
13 verbose pkgid #angular/cli#latest
14 verbose cwd C:\Windows\system32
15 verbose Windows_NT 10.0.17763
16 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "#angular/cli"
17 verbose node v12.17.0
18 verbose npm v6.14.4
19 error code E400
20 error 400 Bad Request - GET https://github.com/
21 verbose exit [ 1, true ]
1.>Go to your this location
C:\Users\{your user name or ID}
2.> open .npmrc & Remove all content from .npmrc file.
3.>reopen your new command prompt
4.>again run the code , will work.
you must enable developer mode first in windows 10
setting
update & security
for developers
and enable developer mode
I just started to learn angular and need to install Angular CLI on my PC (Windows 10) behind a proxy server. My node version is v12.13.1 and npm version is 6.12.1.
I went to the Settings --> Network & Internet --> Proxy and copy the whole value in Script address field and update the config file with that value:
https-proxy=Script address value
proxy=Script address value
Now, when I run npm install -g #angular/cli I get this error below:
npm ERR! 400 Bad Request - GET
https://registry.npmjs.org/#angular%2fcli
and this is log file:
0 info it worked if it ends with ok
1 verbose cli [
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 '#angular/cli'
1 verbose cli ]
2 info using npm#6.12.1
3 info using node#v12.13.1
4 verbose npm-session 273f364019e6cde2
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 400 https://registry.npmjs.org/#angular%2fcli 643ms
8 silly fetchPackageMetaData error for #angular/cli#latest 400 Bad Request - GET https://registry.npmjs.org/#angular%2fcli
9 timing stage:rollbackFailedOptional Completed in 1ms
10 timing stage:runTopLevelLifecycles Completed in 968ms
11 verbose stack Error: 400 Bad Request - GET https://registry.npmjs.org/#angular%2fcli
11 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:104:15
11 verbose stack at processTicksAndRejections (internal/process/task_queues.js:93:5)
12 verbose statusCode 400
13 verbose pkgid #angular/cli#latest
14 verbose cwd C:\Program Files\nodejs
15 verbose Windows_NT 10.0.18362
16 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "#angular/cli"
17 verbose node v12.13.1
18 verbose npm v6.12.1
19 error code E400
20 error 400 Bad Request - GET https://registry.npmjs.org/#angular%2fcli
21 verbose exit [ 1, true ]
Could you please let me know what am I missing here and how I can resolve the issue.
Thanks for your help.
UPDATE (Solution)
Thanks for your comments. I checked the URL and changed my proxy to localhost and it works. The config file looks as below:
proxy=http://localhost:8888/proxy.pac
https-proxy=http://localhost:8888/proxy.pac
http-proxy=http://localhost:8888/proxy.pac
registry=http://registry.npmjs.org/
I used localhost instead of our proxy URL and it resolved the issue. below is my config file:
proxy=http://localhost:8888/proxy.pac
https-proxy=http://localhost:8888/proxy.pac
http-proxy=http://localhost:8888/proxy.pac
registry=http://registry.npmjs.org/
I'am trying to install react-native-cli but getting error
npm install -g react-native-cli
getting this error
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 'react-native-cli' ]
2 info using npm#6.4.1
3 info using node#v10.15.0
4 verbose npm-session 72c72ae6cf674a04
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 http://registry.npmjs.org/react-native-cli 247ms
8 silly fetchPackageMetaData error for react-native-cli#latest Unexpected token < in JSON at position 0 while parsing near '<HTML><HEAD>
8 silly fetchPackageMetaData <meta h...'
9 timing stage:rollbackFailedOptional Completed in 1ms
10 timing stage:runTopLevelLifecycles Completed in 568ms
11 verbose stack SyntaxError: Unexpected token < in JSON at position 0 while parsing near '<HTML><HEAD>
11 verbose stack <meta h...'
11 verbose stack at JSON.parse (<anonymous>)
11 verbose stack at parseJson (C:\Program Files\nodejs\node_modules\npm\node_modules\json-parse-better-errors\index.js:7:17)
11 verbose stack at consumeBody.call.then.buffer (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\body.js:96:50)
11 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7)
12 verbose cwd C:\Users\Basva
13 verbose Windows_NT 10.0.17134
14 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "react-native-cli"
15 verbose node v10.15.0
16 verbose npm v6.4.1
17 error Unexpected token < in JSON at position 0 while parsing near '<HTML><HEAD>
17 error <meta h...'
18 verbose exit [ 1, true ]
What may be the wrong..!!!?
Make sure whether your npm package correctly install.I solved this problem following below step.Try it..
npm i -g npm
npm cache clean
npm update
npm i
I think https://facebook.github.io/react-native/docs/getting-started.html is more useful for your.
Tried nodeJS 8.12 and 10.11
Running latest npm 6.4.1
When trying to install any package i.e. (npm install -g firebase-tools) I get npm ERR! Only absolute URLs are supported.
Uninstalled and reinstall nodeJS. Still broken. Any help appreciated.
Debug Log
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 'firebase-tools' ]
2 info using npm#6.4.1
3 info using node#v10.11.0
4 verbose npm-session 442f99e3eed77ef2
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for firebase-tools#latest Only absolute URLs are supported
8 timing stage:rollbackFailedOptional Completed in 0ms
9 timing stage:runTopLevelLifecycles Completed in 206ms
10 verbose stack TypeError: Only absolute URLs are supported
10 verbose stack at getNodeRequestOptions (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\request.js:131:11)
10 verbose stack at fetch.Promise (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:44:21)
10 verbose stack at new Promise (<anonymous>)
10 verbose stack at fetch (C:\Program
Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:41:10)
10 verbose stack at retry (C:\Program Files\nodejs\node_modules\npm\node_modules\make-fetch-happen\index.js:332:14)
10 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\promise-retry\index.js:29:24
11 verbose cwd C:\Users\Mine
12 verbose Windows_NT 10.0.17134
13 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "firebase-tools"
14 verbose node v10.11.0
15 verbose npm v6.4.1
16 error Only absolute URLs are supported
17 verbose exit [ 1, true ]
Solution moved from #StevePerry's question post.
Had to edit .npmrc file located at C:\Users\yourName\.npmrc
It had a bunch of lines. Only ones needed for me:
//registry.npmjs.org/:_authToken="your_auth_token"
scope="your_name"
#"your_name":registry=https://registry.npmjs.org/