I am a broken man, my builds have been working for years, and since iOS did its latest build, i have issues. I cannot for life get this to work.
MAC is catilina, i cannot believe all of this was working and then a simple version update and i cannot get it to build. I use command line for android (it still works and build successfully). I used the gui for iOS but am now getting a vsTAC issue immediately, so changed to use TACO-cli and was able to connect to mac and start the build process. It fails with this error, my build is all there as id expect except the platform folder where id navigate to open the xcode as normal. But i assume this is because my build is failing. I have updated the mac to be on the exact versions windows is on, i have give all the files the correct permissions. I am totally at a loss. I have been on higher versions before and had it working in past, i wasnt able to update to cordova 9 as one of those plugins didnt support 9 yet.
Currently running:
npm 6.7.0
node 11.15.0
cordova 8.1.2
cordova-android 9.0.0
cordova-ios 6.1.0
23 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-android-permissions
24 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-app-version
25 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-bluetoothclassic-serial
26 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-device
27 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-dialogs
28 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-file
29 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-file-opener2
30 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-file-transfer
31 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-geolocation
32 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-inappbrowser
33 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-navigationbar
34 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-network-information
35 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-screen-orientation
36 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-statusbar
37 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-whitelist
38 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-wkwebview-engine
39 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-wkwebview-file-xhr
40 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-sqlite-storage
41 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/es6-promise-plugin
42 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/ionic-plugin-keyboard
43 warn checkPermissions Missing write access to /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/uk.co.workingedge.cordova.plugin.sqliteporter
44 timing stage:rollbackFailedOptional Completed in 1ms
45 timing stage:runTopLevelLifecycles Completed in 1869ms
46 warn VetIMPRESS#3.0.0 No repository field.
47 verbose stack Error: ENOENT: no such file or directory, access '/Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-android-permissions'
48 verbose cwd /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp
49 verbose Darwin 19.6.0
50 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "cordova-plugin-vs-taco-support" "--production" "--no-save"
51 verbose node v11.15.0
52 verbose npm v6.14.6
53 error code ENOENT
54 error syscall access
55 error path /Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-android-permissions
56 error errno -2
57 error enoent ENOENT: no such file or directory, access '/Users/AppleDev/.taco_home/remote-builds/taco-remote/builds/3456/cordovaApp/node_modules/cordova-plugin-android-permissions'
58 error enoent This is related to npm not being able to find a file.
59 verbose exit [ -2, true ]
Related
I have an Android Studio project connected to GitHub Actions, but my GitHub actions started to fail and I don't know the reason. For example, the log of working actions was:
Fetching gem metadata from https://rubygems.org/.
31
Following files may not be writable, so sudo is needed:
32
/var/lib/gems/3.0.0
33
/var/lib/gems/3.0.0/build_info
34
/var/lib/gems/3.0.0/cache
35
/var/lib/gems/3.0.0/doc
36
/var/lib/gems/3.0.0/extensions
37
/var/lib/gems/3.0.0/gems
38
/var/lib/gems/3.0.0/plugins
39
/var/lib/gems/3.0.0/specifications
40
Fetching bundler 2.2.29
41
Installing bundler 2.2.29
But now for some reason I'm seeing this and builds fail:
Fetching bundler 2.2.29
32
Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.0.0/cache/bundler-2.2.29.gem`. It is likely that you need to grant write permissions for that path.
33
34
Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.0.0/cache/bundler-2.2.29.gem`. It is likely that you need to grant write permissions for that path.
35
36
Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::PermissionError There was an error while trying to write to `/var/lib/gems/3.0.0/cache/bundler-2.2.29.gem`. It is likely that you need to grant write permissions for that path.
Telling me that I need to grant permission. Any help would be much appreciated.
I'm currently in the process of writing tests in Playwright.
What I notice is a strange output in the console:
TypeError: Cannot read property 'retry' of undefined
Even though all the tests pass, I get this, and it leads to ugly additional output:
Here is the content of the debug.log:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/Users/josua/.nvm/versions/node/v12.18.4/bin/node',
1 verbose cli '/Users/josua/.nvm/versions/node/v12.18.4/bin/npm',
1 verbose cli 'run',
1 verbose cli 'test:run'
1 verbose cli ]
2 info using npm#6.14.6
3 info using node#v12.18.4
4 verbose run-script [ 'pretest:run', 'test:run', 'posttest:run' ]
5 info lifecycle adg-components#0.0.0~pretest:run: adg-components#0.0.0
6 info lifecycle adg-components#0.0.0~test:run: adg-components#0.0.0
7 verbose lifecycle adg-components#0.0.0~test:run: unsafe-perm in lifecycle true
8 verbose lifecycle adg-components#0.0.0~test:run: PATH: /Users/josua/.nvm/versions/node/v12.18.4/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/josua/Projects/adg-components-ramon/node_modules/.bin:/Users/josua/.rvm/gems/ruby-2.4.10/bin:/Users/josua/.rvm/gems/ruby-2.4.10#global/bin:/Users/josua/.rvm/rubies/ruby-2.4.10/bin:/Users/josua/.nvm/versions/node/v12.18.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Users/josua/.rvm/bin
9 verbose lifecycle adg-components#0.0.0~test:run: CWD: /Users/josua/Projects/adg-components-ramon
10 silly lifecycle adg-components#0.0.0~test:run: Args: [ '-c', 'playwright test' ]
11 silly lifecycle adg-components#0.0.0~test:run: Returned: code: 1 signal: null
12 info lifecycle adg-components#0.0.0~test:run: Failed to exec test:run script
13 verbose stack Error: adg-components#0.0.0 test:run: `playwright test`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/Users/josua/.nvm/versions/node/v12.18.4/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess.<anonymous> (/Users/josua/.nvm/versions/node/v12.18.4/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid adg-components#0.0.0
15 verbose cwd /Users/josua/Projects/adg-components-ramon
16 verbose Darwin 21.2.0
17 verbose argv "/Users/josua/.nvm/versions/node/v12.18.4/bin/node" "/Users/josua/.nvm/versions/node/v12.18.4/bin/npm" "run" "test:run"
18 verbose node v12.18.4
19 verbose npm v6.14.6
20 error code ELIFECYCLE
21 error errno 1
22 error adg-components#0.0.0 test:run: `playwright test`
22 error Exit status 1
23 error Failed at the adg-components#0.0.0 test:run script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Can't find any reference to retry in there though. And in my whole project, looking for retry, I only find this:
What confuses me most is that it only happens with several tests: when I attach .only to a test, for some it happens, for some it doesn't. Couldn't find a difference between those tests though: I even copy&pasted the content of some test from a non-failing one to a failing one (replace the failing one), and it still failed. Very strange.
This can be caused by having two tests of the same name when one of them is set as test.only
It seem there is an issue opened for this in playwright.
https://github.com/microsoft/playwright/issues/14034
I’m having this weird error when deploying to nexus.
npm i
npm ERR! code E403
npm ERR! 403 Forbidden: express#^4.16.3
Where the artifact at the end it changes from time to time (I mean, is not always express#^4.16.3)
Things I have checked so far.
I can login to Nexus through browser using the user and password that is defined on the upload.
I can login to Nexus repo through shell using the user and password defined on the upload.
I can upload the package using a local shell and using the same credentials.
During the execution, I did a curl -v repo-url and I get a correct response (so I assume I got network connectivity).
I have checked if was a proxy, and there was.
I deleted the proxy configuration
I changed to another proxy
I added a no proxy variable so I can except the FQDN of the Nexus URL Repo
I also checked if the package (in this case express#^4.16.3) exists on Nexus, and it does.
But in all cases I’m still getting the 403 error at the end.
To give a bit more of context.
This is using Jenkins.
And targetting a new nexus that I'm deploying.
If I use the old nexus I don’t have this issues. It only happens to the new version
And, I migrate all the data, so the same user that exists in the old nexus is in the new one and you can login with those credentials.
I have checked nexus.log, request.log and Jenkins logs but didn't find any errors.
Jenkins and "old nexus" are installed in docker form in the same server
"New nexus" is installed in another server, also as a container.
From the servers I have network connectivity between them (can ping them, check port, and curl to the URLs.
I have given nx-admin role to the user that is configured.
Still the same error.
While the Jenkins job was running, I left the Nexus Log Viewer open
There was no error or sign in the Nexus Log Viewer.
BUT, I managed to find the following log in Jenkins: JENKINS_HOME/.npm/_logs/timestamp-debug.log
Where I have the ERR 403, and got the following
jenkins#hostname:~/.npm/_logs$ cat timestamp-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/var/jenkins_home/tools /jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/bin/node',
1 verbose cli '/var/jenkins_home/tools /jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/bin/npm',
1 verbose cli 'i' ]
2 info using npm#5.6.0
3 info using node#v8.9.4
4 verbose npm-session 609c979f77769373
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall api-docs#1.0.0
7 info lifecycle api-docs#1.0.0~preinstall: api-docs#1.0.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 403 http://nexus-url/repository/my-repo-npm/express 2096ms
15 silly fetchPackageMetaData error for express#^4.16.3 403 Forbidden: express#^4.16.3
16 http fetch GET 403 http://nexus-url/repository/my-repo-npm/http-server 2094ms
17 http fetch GET 403 http://nexus-url/repository/my-repo-npm/swagger-ui-express 2092ms
18 silly fetchPackageMetaData error for http-server#^0.11.1 403 Forbidden: http-server#^0.11.1
19 silly fetchPackageMetaData error for swagger-ui-express#^4.0.1 403 Forbidden: swagger-ui-express#^4.0.1
20 http fetch GET 403 http://nexus-url/repository/my-repo-npm/multi-file-swagger 2095ms
21 silly fetchPackageMetaData error for multi-file-swagger#2.2.0 403 Forbidden: multi-file-swagger#2.2.0
22 http fetch GET 403 http://nexus-url/repository/my-repo-npm/express 45ms
23 silly fetchPackageMetaData error for express#^4.16.3 403 Forbidden: express#^4.16.3
24 http fetch GET 403 http://nexus-url/repository/my-repo-npm/http-server 46ms
25 silly fetchPackageMetaData error for http-server#^0.11.1 403 Forbidden: http-server#^0.11.1
26 http fetch GET 403 http://nexus-url/repository/my-repo-npm/multi-file-swagger 48ms
27 silly fetchPackageMetaData error for multi-file-swagger#2.2.0 403 Forbidden: multi-file-swagger#2.2.0
28 http fetch GET 403 http://nexus-url/repository/my-repo-npm/swagger-ui-express 49ms
29 silly fetchPackageMetaData error for swagger-ui-express#^4.0.1 403 Forbidden: swagger-ui-express#^4.0.1
30 silly saveTree api-docs#1.0.0
31 verbose stack Error: 403 Forbidden: express#^4.16.3
31 verbose stack at fetch.then.res (/var/jenkins_home/tools /jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:42:19)
31 verbose stack at tryCatcher (/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
31 verbose stack at Promise._settlePromiseFromHandler (/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
31 verbose stack at Promise._settlePromise (/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
31 verbose stack at Promise._settlePromise0 (/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
31 verbose stack at Promise._settlePromises (/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
31 verbose stack at Async._drainQueue (/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
31 verbose stack at Async._drainQueues (/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
31 verbose stack at Immediate.Async.drainQueues (/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
31 verbose stack at runCallback (timers.js:789:20)
31 verbose stack at tryOnImmediate (timers.js:751:5)
31 verbose stack at processImmediate [as _immediateCallback] (timers.js:722:5)
32 verbose cwd /var/jenkins_home/jobs/CUSTOM/workspace
33 verbose Linux 4.4.21-69-default
34 verbose argv "/var/jenkins_home/tools /jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/bin/node" "/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_8.9.4/bin/npm" "i"
35 verbose node v8.9.4
36 verbose npm v5.6.0
37 error code E403
38 error 403 Forbidden: express#^4.16.3
39 verbose exit [ 1, true ]
I looked for this packages on my Nexus Repo
express#^4.16.3
http-server#^0.11.1
swagger-ui-express#^4.0.1
multi-file-swagger#2.2.0
And found that I did not got some of those, so I downloaded them and uploaded to the repo.
I have also rerun the job, but still got the same error.
Even configuring the proxy at server and container level didn't worked.
I'd found out that Jenkins has a proxy configuration at the application level.
So I went into Jenkins, Administration section and configured the proxy properly. After that was done, it all started to work.
I'm currently working on deploying a project to Elastic Beanstalk, but I'm getting a failure when trying to run npm install from my config file in the .ebextensions folder. The project's backend is using Rails in API mode, while the frontend is served from the app/client folder with React. I can deploy successfully and open routes served from the Rails API(..table_1/all), but nothing is rendered by React. In local testing I use 'yarn start' in the app/client folder.
As I'm a beginner when it comes to deployment and use of react I would appreciate all the help I can get fixing this. Based on the logs below I'm not really sure what to do.
This is my config file in .ebextensions
container_commands:
01_npm_install:
cwd: '/var/app/ondeck/client/'
command: 'npm install --timeout 30'
leader_only: 'false'
This is the error displayed in the EB CLI:
_ucsb_class_scheduler/Command 01_npm_install] : Activity execution failed, because: npm ERR! Linux 4.9.58-18.55.amzn1.x86_64
npm ERR! argv "/opt/elasticbeanstalk/support/node-install/node-v4.6.0-linux-x64/bin/node" "/usr/bin/npm" "install" "--timeout" "30"
npm ERR! node v4.6.0
npm ERR! npm v2.15.9
npm ERR! code E404
npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/30
npm ERR! 404
npm ERR! 404 '30' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'client'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! /var/app/ondeck/client/npm-debug.log
(ElasticBeanstalk::ExternalInvocationError)
And /var/app/ondeck/client/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/opt/elasticbeanstalk/support/node-install/node-v4.6.0-linux-x64/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli '--timeout',
1 verbose cli '30' ]
2 info using npm#2.15.9
3 info using node#v4.6.0
4 verbose install initial load of /var/app/ondeck/client/package.json
5 verbose readDependencies loading dependencies from /var/app/ondeck/client/package.json
6 silly cache add args [ '30', null ]
7 verbose cache add spec 30
8 silly cache add parsed spec Result {
8 silly cache add raw: '30',
8 silly cache add scope: null,
8 silly cache add name: '30',
8 silly cache add rawSpec: '',
8 silly cache add spec: 'latest',
8 silly cache add type: 'tag' }
9 silly addNamed 30#latest
10 verbose addNamed "latest" is being treated as a dist-tag for 30
11 info addNameTag [ '30', 'latest' ]
12 silly mapToRegistry name 30
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry data Result {
15 silly mapToRegistry raw: '30',
15 silly mapToRegistry scope: null,
15 silly mapToRegistry name: '30',
15 silly mapToRegistry rawSpec: '',
15 silly mapToRegistry spec: 'latest',
15 silly mapToRegistry type: 'tag' }
16 silly mapToRegistry uri https://registry.npmjs.org/30
17 verbose addNameTag registry:https://registry.npmjs.org/30 not in flight; fetching
18 verbose request uri https://registry.npmjs.org/30
19 verbose request no auth needed
20 info attempt registry request try #1 at 7:33:50 AM
21 verbose request id b42d3e8383778fa0
22 http request GET https://registry.npmjs.org/30
23 http 404 https://registry.npmjs.org/30
24 verbose headers { 'content-type': 'application/json',
24 verbose headers 'cache-control': 'max-age=0',
24 verbose headers 'content-length': '2',
24 verbose headers 'accept-ranges': 'bytes',
24 verbose headers date: 'Thu, 16 Nov 2017 07:33:50 GMT',
24 verbose headers via: '1.1 varnish',
24 verbose headers age: '0',
24 verbose headers connection: 'keep-alive',
24 verbose headers 'x-served-by': 'cache-sea1028-SEA',
24 verbose headers 'x-cache': 'MISS',
24 verbose headers 'x-cache-hits': '0',
24 verbose headers 'x-timer': 'S1510817631.695604,VS0,VE146',
24 verbose headers vary: 'Accept-Encoding' }
25 silly get cb [ 404,
25 silly get { 'content-type': 'application/json',
25 silly get 'cache-control': 'max-age=0',
25 silly get 'content-length': '2',
25 silly get 'accept-ranges': 'bytes',
25 silly get date: 'Thu, 16 Nov 2017 07:33:50 GMT',
25 silly get via: '1.1 varnish',
25 silly get age: '0',
25 silly get connection: 'keep-alive',
25 silly get 'x-served-by': 'cache-sea1028-SEA',
25 silly get 'x-cache': 'MISS',
25 silly get 'x-cache-hits': '0',
25 silly get 'x-timer': 'S1510817631.695604,VS0,VE146',
25 silly get vary: 'Accept-Encoding' } ]
26 verbose stack Error: Registry returned 404 for GET on https://registry.npmjs.org/30
26 verbose stack at makeError (/opt/elasticbeanstalk/support/node-install/node-v4.6.0-linux-x64/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:264:12)
26 verbose stack at CachingRegistryClient.<anonymous> (/opt/elasticbeanstalk/support/node-install/node-v4.6.0-linux-x64/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:242:14)
26 verbose stack at Request._callback (/opt/elasticbeanstalk/support/node-install/node-v4.6.0-linux-x64/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:172:14)
26 verbose stack at Request.self.callback (/opt/elasticbeanstalk/support/node-install/node-v4.6.0-linux-x64/lib/node_modules/npm/node_modules/request/request.js:200:22)
26 verbose stack at emitTwo (events.js:87:13)
26 verbose stack at Request.emit (events.js:172:7)
26 verbose stack at Request.<anonymous> (/opt/elasticbeanstalk/support/node-install/node-v4.6.0-linux-x64/lib/node_modules/npm/node_modules/request/request.js:1067:10)
26 verbose stack at emitOne (events.js:82:20)
26 verbose stack at Request.emit (events.js:169:7)
26 verbose stack at IncomingMessage.<anonymous> (/opt/elasticbeanstalk/support/node-install/node-v4.6.0-linux-x64/lib/node_modules/npm/node_modules/request/request.js:988:12)
27 verbose statusCode 404
28 verbose pkgid 30
29 verbose cwd /var/app/ondeck/client
30 error Linux 4.9.58-18.55.amzn1.x86_64
31 error argv "/opt/elasticbeanstalk/support/node-install/node-v4.6.0-linux-x64/bin/node" "/usr/bin/npm" "install" "--timeout" "30"
32 error node v4.6.0
33 error npm v2.15.9
34 error code E404
35 error 404 Registry returned 404 for GET on https://registry.npmjs.org/30
35 error 404
35 error 404 '30' is not in the npm registry.
35 error 404 You should bug the author to publish it (or use the name yourself!)
35 error 404 It was specified as a dependency of 'client'
35 error 404
35 error 404 Note that you can also install from a
35 error 404 tarball, folder, http url, or git url.
36 verbose exit [ 1, true ]
I have a Dart with AngluarDart in local.
Ubuntu 16.04.2
DartSdk v1.23.0
"pub serve" seems work fine
$ pub serve
Loading source assets...
Loading angular2, dart_to_js_script_rewriter and dart_sass_transformer
transformers... (3.4s)
Serving xxx web on http://localhost:8080
Build completed successfully
But when I try to load the web into my browser I get this error:
[web] GET Served 3 cached assets.
[Info from Dart2JS]:
Compiling xxx|web/main.dart...
[Error from Dart2JS]:
web/main.dart:
The compiler crashed when compiling this element.
The compiler is broken.
When compiling the above element, the compiler crashed.
It is not possible to tell if this is caused by a problem in your program or not.
Regardless, the compiler should not crash.
The Dart team would greatly appreciate if you would take a moment to
report this problem at http://dartbug.com/new.
Please include the following information:
* the name and version of your operating system,
* the Dart SDK build number (build number could not be determined), and
* the entire message you see here (including the full stack trace
below as well as the source location above).
Build error:
Transform Dart2JS on xxx|web/main.dart threw error: The getter 'uses'
was called on null.
Receiver: null
Tried calling: uses
dart:core
Object.noSuchMethod
package:compiler_unsupported/src/dump_info.dart 576
DumpInfoTask.dumpInfoJson
package:compiler_unsupported/src/dump_info.dart 536
DumpInfoTask.dumpInfo.<fn>
package:compiler_unsupported/src/common/tasks.dart 63
CompilerTask.measure
package:compiler_unsupported/src/dump_info.dart 533
DumpInfoTask.dumpInfo
package:compiler_unsupported/src/compiler.dart 703
Compiler.compileLoadedLibraries.<fn>
package:compiler_unsupported/src/common/tasks.dart 176
CompilerTask.measureSubtask
package:compiler_unsupported/src/compiler.dart 582
Compiler.compileLoadedLibraries
package:compiler_unsupported/src/compiler.dart 471
Compiler.runInternal
===== asynchronous gap ===========================
package:compiler_unsupported/src/compiler.dart 310 Compiler.run.
<fn>.<fn>
dart:async
Future.Future.sync
package:compiler_unsupported/src/compiler.dart 310 Compiler.run.
<fn>
package:compiler_unsupported/src/common/tasks.dart 176
CompilerTask.measureSubtask
package:compiler_unsupported/src/compiler.dart 307 Compiler.run
package:compiler_unsupported/src/apiimpl.dart 245 CompilerImpl.run.<fn>.<fn>
Build completed with 2 errors.
[web] GET main.dart.js → Could not find asset xxx|web/main.dart.js.
[web] GET favicon.ico → (cached) xxx|web/favicon.ico
I tried to get DartSDK again, revised the PATH...
What can be the problem?
I solved the problem downgrading Dart SDK version.
From 1.23.0 to 1.21.1
Now the complilator do his job without problems.